From 423bddac6a9921641f0661a69ea9c561a598cfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 1 Jul 2013 10:56:28 +0200 Subject: [PATCH] matroskademux: Add AAC profile/level to the caps https://bugzilla.gnome.org/show_bug.cgi?id=703312 --- gst/matroska/matroska-demux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index c586f55c5e..71e7821f38 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -5441,6 +5441,9 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext * "framed", G_TYPE_BOOLEAN, TRUE, "stream-format", G_TYPE_STRING, "raw", NULL); gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, priv, NULL); + if (context->codec_priv && context->codec_priv_size > 0) + gst_codec_utils_aac_caps_set_level_and_profile (caps, + context->codec_priv, context->codec_priv_size); *codec_name = g_strdup_printf ("MPEG-%d AAC audio", mpegversion); gst_buffer_unref (priv); }