matroskademux: handle TrueHD audio codec id

https://bugzilla.gnome.org/show_bug.cgi?id=697113
This commit is contained in:
Arnaud Vrac 2012-08-29 17:24:00 +02:00 committed by Tim-Philipp Müller
parent ac2bcfa833
commit 00b46b4744
2 changed files with 5 additions and 0 deletions

View file

@ -5283,6 +5283,10 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
caps = gst_caps_new_simple ("audio/x-eac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
*codec_name = g_strdup ("E-AC-3 audio");
} else if (!strncmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_TRUEHD,
strlen (GST_MATROSKA_CODEC_ID_AUDIO_TRUEHD))) {
caps = gst_caps_new_empty_simple ("audio/x-true-hd");
*codec_name = g_strdup ("Dolby TrueHD");
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_DTS)) {
caps = gst_caps_new_empty_simple ("audio/x-dts");
*codec_name = g_strdup ("DTS audio");

View file

@ -356,6 +356,7 @@
#define GST_MATROSKA_CODEC_ID_AUDIO_AC3_BSID9 "A_AC3/BSID9"
#define GST_MATROSKA_CODEC_ID_AUDIO_AC3_BSID10 "A_AC3/BSID10"
#define GST_MATROSKA_CODEC_ID_AUDIO_EAC3 "A_EAC3"
#define GST_MATROSKA_CODEC_ID_AUDIO_TRUEHD "A_TRUEHD"
#define GST_MATROSKA_CODEC_ID_AUDIO_DTS "A_DTS"
#define GST_MATROSKA_CODEC_ID_AUDIO_VORBIS "A_VORBIS"
#define GST_MATROSKA_CODEC_ID_AUDIO_FLAC "A_FLAC"