mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
matroska: Update for the new raw audio interleaved caps field
Still needs to be fixed to handle the multichannel channel-mask and reordering.
This commit is contained in:
parent
261a42c9ef
commit
dd84b002b0
2 changed files with 9 additions and 3 deletions
|
@ -5191,8 +5191,10 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
|||
format = gst_audio_format_build_integer (sign, endianness,
|
||||
audiocontext->bitdepth, audiocontext->bitdepth);
|
||||
|
||||
/* FIXME: Channel mask and reordering */
|
||||
caps = gst_caps_new_simple ("audio/x-raw",
|
||||
"format", G_TYPE_STRING, gst_audio_format_to_string (format), NULL);
|
||||
"format", G_TYPE_STRING, gst_audio_format_to_string (format),
|
||||
"layout", G_TYPE_STRING, "interleaved", NULL);
|
||||
|
||||
*codec_name = g_strdup_printf ("Raw %d-bit PCM audio",
|
||||
audiocontext->bitdepth);
|
||||
|
@ -5203,8 +5205,10 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
|||
format = "F32LE";
|
||||
else
|
||||
format = "F64LE";
|
||||
/* FIXME: Channel mask and reordering */
|
||||
caps = gst_caps_new_simple ("audio/x-raw",
|
||||
"format", G_TYPE_STRING, format, NULL);
|
||||
"format", G_TYPE_STRING, format,
|
||||
"layout", G_TYPE_STRING, "interleaved", NULL);
|
||||
*codec_name = g_strdup_printf ("Raw %d-bit floating-point audio",
|
||||
audiocontext->bitdepth);
|
||||
context->alignment = audiocontext->bitdepth / 8;
|
||||
|
@ -5251,8 +5255,9 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
|||
if (riff_audio_fmt)
|
||||
*riff_audio_fmt = auds.format;
|
||||
|
||||
/* FIXME: Handle reorder map */
|
||||
caps = gst_riff_create_audio_caps (auds.format, NULL, &auds, NULL,
|
||||
codec_data, codec_name);
|
||||
codec_data, codec_name, NULL);
|
||||
gst_buffer_unref (codec_data);
|
||||
|
||||
if (caps == NULL) {
|
||||
|
|
|
@ -166,6 +166,7 @@ static GstStaticPadTemplate audiosink_templ =
|
|||
COMMON_AUDIO_CAPS "; "
|
||||
"audio/x-raw, "
|
||||
"format = (string) { U8, S16BE, S16LE, S24BE, S24LE, S32BE, S32LE, F32LE, F64LE }, "
|
||||
"layout = (string) interleaved, "
|
||||
COMMON_AUDIO_CAPS ";"
|
||||
"audio/x-tta, "
|
||||
"width = (int) { 8, 16, 24 }, "
|
||||
|
|
Loading…
Reference in a new issue