mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
matroskademux: handle TrueHD audio codec id
https://bugzilla.gnome.org/show_bug.cgi?id=697113
This commit is contained in:
parent
ac2bcfa833
commit
00b46b4744
2 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue