[vlc-devel] [PATCH 2/9] demux: mp4: fill DTS profile

Thomas Guillem thomas at gllm.fr
Wed Dec 20 14:12:38 CET 2017


---
 modules/demux/mp4/essetup.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 6bbc87a654..4b10e3ea8f 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -27,6 +27,7 @@
 #include "mp4.h"
 #include "avci.h"
 #include "../xiph.h"
+#include "../../packetizer/dts_header.h"
 
 #include <vlc_demux.h>
 #include <vlc_aout.h>
@@ -114,9 +115,11 @@ static void SetupESDS( demux_t *p_demux, mp4_track_t *p_track, const MP4_descrip
     case( 0xa6 ):
         p_track->fmt.i_codec = VLC_CODEC_EAC3;
         break;
-    case( 0xa9 ): /* dts */
     case( 0xaa ): /* DTS-HD HRA */
     case( 0xab ): /* DTS-HD Master Audio */
+        p_track->fmt.i_profile = PROFILE_DTS_HD;
+        /* fallthrough */
+    case( 0xa9 ): /* dts */
         p_track->fmt.i_codec = VLC_CODEC_DTS;
         break;
     case( 0xDD ):
-- 
2.11.0



More information about the vlc-devel mailing list