1 From f4ac6c27e670473fc2944ecc6563fff7170dede3 Mon Sep 17 00:00:00 2001
3 Date: Mon, 1 Jul 2013 17:41:53 +0200
4 Subject: [PATCH] [MatroskaDemux] Set profile field in cap for aac audio
7 gst/matroska/matroska-demux.c | 2 ++
8 1 file changed, 2 insertions(+)
10 diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
11 index e9ce024..34e92b0 100644
12 --- a/gst/matroska/matroska-demux.c
13 +++ b/gst/matroska/matroska-demux.c
14 @@ -5413,6 +5413,8 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
15 "mpegversion", G_TYPE_INT, mpegversion,
16 "framed", G_TYPE_BOOLEAN, TRUE, NULL);
17 gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, priv, NULL);
18 + if (context->codec_priv && context->codec_priv_size > 0)
19 + gst_codec_utils_aac_caps_set_level_and_profile (caps, context->codec_priv, context->codec_priv_size);
20 *codec_name = g_strdup_printf ("MPEG-%d AAC audio", mpegversion);
21 gst_buffer_unref (priv);