mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
faac: Add format to output caps
Adds 'stream-format' to output caps to inform if the stream is adts or raw. This makes it possible for muxers to reject input streams on caps if they don't support adts instead of generating a invalid file. Fixes #604925
This commit is contained in:
parent
c31559841a
commit
635b0c1129
1 changed files with 5 additions and 2 deletions
|
@ -77,7 +77,8 @@
|
|||
"audio/mpeg, " \
|
||||
"mpegversion = (int) { 4, 2 }, " \
|
||||
"channels = (int) [ 1, 6 ], " \
|
||||
"rate = (int) [ 8000, 96000 ]"
|
||||
"rate = (int) [ 8000, 96000 ], " \
|
||||
"stream-format = (string) { adts, none } "
|
||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
|
@ -497,7 +498,9 @@ gst_faac_configure_source_pad (GstFaac * faac)
|
|||
srccaps = gst_caps_new_simple ("audio/mpeg",
|
||||
"mpegversion", G_TYPE_INT, mpegversion,
|
||||
"channels", G_TYPE_INT, faac->channels,
|
||||
"rate", G_TYPE_INT, faac->samplerate, NULL);
|
||||
"rate", G_TYPE_INT, faac->samplerate,
|
||||
"stream-format", G_TYPE_STRING, (faac->outputformat ? "adts" : "none"),
|
||||
NULL);
|
||||
|
||||
if (!faac->outputformat) {
|
||||
GstBuffer *codec_data;
|
||||
|
|
Loading…
Reference in a new issue