ac3: demuxers provide framed output

This commit is contained in:
Mark Nauwelaerts 2010-10-14 17:26:14 +02:00
parent 7a8ebc4a79
commit 4085f12058
2 changed files with 8 additions and 4 deletions

View file

@ -6704,11 +6704,13 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
audiocontext->bitdepth); audiocontext->bitdepth);
} else if (!strncmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_AC3, } else if (!strncmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_AC3,
strlen (GST_MATROSKA_CODEC_ID_AUDIO_AC3))) { strlen (GST_MATROSKA_CODEC_ID_AUDIO_AC3))) {
caps = gst_caps_new_simple ("audio/x-ac3", NULL); caps = gst_caps_new_simple ("audio/x-ac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
*codec_name = g_strdup ("AC-3 audio"); *codec_name = g_strdup ("AC-3 audio");
} else if (!strncmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_EAC3, } else if (!strncmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_EAC3,
strlen (GST_MATROSKA_CODEC_ID_AUDIO_EAC3))) { strlen (GST_MATROSKA_CODEC_ID_AUDIO_EAC3))) {
caps = gst_caps_new_simple ("audio/x-eac3", NULL); caps = gst_caps_new_simple ("audio/x-eac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
*codec_name = g_strdup ("E-AC-3 audio"); *codec_name = g_strdup ("E-AC-3 audio");
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_DTS)) { } else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_DTS)) {
caps = gst_caps_new_simple ("audio/x-dts", NULL); caps = gst_caps_new_simple ("audio/x-dts", NULL);

View file

@ -7505,7 +7505,8 @@ gst_qtdemux_handle_esds (GstQTDemux * qtdemux, QtDemuxStream * stream,
break; break;
case 0xA5: /* AC3 */ case 0xA5: /* AC3 */
codec_name = "AC-3 audio"; codec_name = "AC-3 audio";
caps = gst_caps_new_simple ("audio/x-ac3", NULL); caps = gst_caps_new_simple ("audio/x-ac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
break; break;
case 0xE1: /* QCELP */ case 0xE1: /* QCELP */
/* QCELP, the codec_data is a riff tag (little endian) with /* QCELP, the codec_data is a riff tag (little endian) with
@ -7973,7 +7974,8 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case 0x20736d: case 0x20736d:
case GST_MAKE_FOURCC ('a', 'c', '-', '3'): case GST_MAKE_FOURCC ('a', 'c', '-', '3'):
_codec ("AC-3 audio"); _codec ("AC-3 audio");
caps = gst_caps_new_simple ("audio/x-ac3", NULL); caps = gst_caps_new_simple ("audio/x-ac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
stream->sampled = TRUE; stream->sampled = TRUE;
break; break;
case GST_MAKE_FOURCC ('M', 'A', 'C', '3'): case GST_MAKE_FOURCC ('M', 'A', 'C', '3'):