[vlc-commits] demux: psi: fill DTS profile

Thomas Guillem git at videolan.org
Thu Dec 21 10:53:06 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 14:08:32 2017 +0100| [e07420cfb5643864d1cfbb5f27dcfb29245e54ad] | committer: Jean-Baptiste Kempf

demux: psi: fill DTS profile

(cherry picked from commit f35b3d97915e155807f6b11b96b45eb1efbfb58f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e07420cfb5643864d1cfbb5f27dcfb29245e54ad
---

 modules/demux/mpeg/ts_psi.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 813f9bb8f5..21cf0335f6 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -46,6 +46,7 @@
 
 #include "../../codec/jpeg2000.h"
 #include "../../codec/opus_header.h"
+#include "../../packetizer/dts_header.h"
 
 #include "sections.h"
 #include "ts_sl.h"
@@ -1250,9 +1251,12 @@ static bool PMTSetupEsHDMV( demux_t *p_demux, ts_es_t *p_es,
     case 0x81:
         es_format_Change( p_fmt, AUDIO_ES, VLC_CODEC_A52 );
         break;
-    case 0x82:
     case 0x85: /* DTS-HD High resolution audio */
     case 0x86: /* DTS-HD Master audio */
+        es_format_Change( p_fmt, AUDIO_ES, VLC_CODEC_DTS );
+        p_fmt->i_profile = PROFILE_DTS_HD;
+        break;
+    case 0x82:
     case 0xA2: /* Secondary DTS audio */
         es_format_Change( p_fmt, AUDIO_ES, VLC_CODEC_DTS );
         break;



More information about the vlc-commits mailing list