tsdemux: add explicit supported AAC stream-format in template caps
https://bugzilla.gnome.org/show_bug.cgi?id=665394
This commit is contained in:
parent
b131ad9563
commit
2dec0950cf
@ -146,7 +146,10 @@ struct _TSDemuxStream
|
|||||||
#define AUDIO_CAPS \
|
#define AUDIO_CAPS \
|
||||||
GST_STATIC_CAPS ( \
|
GST_STATIC_CAPS ( \
|
||||||
"audio/mpeg, " \
|
"audio/mpeg, " \
|
||||||
"mpegversion = (int) { 1, 4 };" \
|
"mpegversion = (int) 1;" \
|
||||||
|
"audio/mpeg, " \
|
||||||
|
"mpegversion = (int) 4, " \
|
||||||
|
"stream-format = (string) adts; " \
|
||||||
"audio/x-lpcm, " \
|
"audio/x-lpcm, " \
|
||||||
"width = (int) { 16, 20, 24 }, " \
|
"width = (int) { 16, 20, 24 }, " \
|
||||||
"rate = (int) { 48000, 96000 }, " \
|
"rate = (int) { 48000, 96000 }, " \
|
||||||
@ -1077,11 +1080,12 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
|||||||
case ST_DSMCC_D:
|
case ST_DSMCC_D:
|
||||||
MPEGTS_BIT_UNSET (base->is_pes, bstream->pid);
|
MPEGTS_BIT_UNSET (base->is_pes, bstream->pid);
|
||||||
break;
|
break;
|
||||||
case ST_AUDIO_AAC:
|
case ST_AUDIO_AAC: /* ADTS */
|
||||||
template = gst_static_pad_template_get (&audio_template);
|
template = gst_static_pad_template_get (&audio_template);
|
||||||
name = g_strdup_printf ("audio_%04x", bstream->pid);
|
name = g_strdup_printf ("audio_%04x", bstream->pid);
|
||||||
caps = gst_caps_new_simple ("audio/mpeg",
|
caps = gst_caps_new_simple ("audio/mpeg",
|
||||||
"mpegversion", G_TYPE_INT, 4, NULL);
|
"mpegversion", G_TYPE_INT, 4,
|
||||||
|
"stream-format", G_TYPE_STRING, "adts", NULL);
|
||||||
break;
|
break;
|
||||||
case ST_VIDEO_MPEG4:
|
case ST_VIDEO_MPEG4:
|
||||||
template = gst_static_pad_template_get (&video_template);
|
template = gst_static_pad_template_get (&video_template);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user