mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
ac3: demuxers provide framed output
This commit is contained in:
parent
7a8ebc4a79
commit
4085f12058
2 changed files with 8 additions and 4 deletions
|
@ -6704,11 +6704,13 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
|||
audiocontext->bitdepth);
|
||||
} else if (!strncmp (codec_id, 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");
|
||||
} else if (!strncmp (codec_id, 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");
|
||||
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_DTS)) {
|
||||
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
||||
|
|
|
@ -7505,7 +7505,8 @@ gst_qtdemux_handle_esds (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
|||
break;
|
||||
case 0xA5: /* AC3 */
|
||||
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;
|
||||
case 0xE1: /* QCELP */
|
||||
/* 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 GST_MAKE_FOURCC ('a', 'c', '-', '3'):
|
||||
_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;
|
||||
break;
|
||||
case GST_MAKE_FOURCC ('M', 'A', 'C', '3'):
|
||||
|
|
Loading…
Reference in a new issue