matroskademux: Add AAC profile/level to the caps

https://bugzilla.gnome.org/show_bug.cgi?id=703312
This commit is contained in:
Sebastian Dröge 2013-07-01 10:56:28 +02:00
parent c469434ea8
commit 423bddac6a

View file

@ -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);
}