[vlc-devel] [PATCH V2 1/8] fourcc: add VLC_CODEC_DTSHD

Thomas Guillem thomas at gllm.fr
Mon Oct 7 15:46:19 CEST 2019


This new fourcc should only by used for audio output and filters. Decoder,
packetizers, and demuxers should not set it (but use PROFILE_DTS_* instead).
---
 include/vlc_aout.h   | 1 +
 include/vlc_fourcc.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index 0b2d19e49f..49527f30fb 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -84,6 +84,7 @@
 
 #define AOUT_FMT_HDMI( p_format )                   \
     ( (p_format)->i_format == VLC_CODEC_EAC3        \
+    ||(p_format)->i_format == VLC_CODEC_DTSHD       \
     ||(p_format)->i_format == VLC_CODEC_TRUEHD      \
     ||(p_format)->i_format == VLC_CODEC_MLP         \
     )
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 691e493eb7..5bdf4ead11 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -444,6 +444,8 @@
 #define VLC_CODEC_A52                        VLC_FOURCC('a','5','2',' ')
 #define VLC_CODEC_EAC3                       VLC_FOURCC('e','a','c','3')
 #define VLC_CODEC_DTS                        VLC_FOURCC('d','t','s',' ')
+/* Only used by outputs and filters */
+#define VLC_CODEC_DTSHD                      VLC_FOURCC('d','t','s','h')
 #define VLC_CODEC_WMA1                       VLC_FOURCC('W','M','A','1')
 #define VLC_CODEC_WMA2                       VLC_FOURCC('W','M','A','2')
 #define VLC_CODEC_WMAP                       VLC_FOURCC('W','M','A','P')
-- 
2.20.1



More information about the vlc-devel mailing list