[vlc-devel] [PATCH 3/9] demux: psi: fill DTS profile
Thomas Guillem
thomas at gllm.fr
Wed Dec 20 14:12:39 CET 2017
---
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 e1462ddc9f..8e33425b1a 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"
@@ -1257,9 +1258,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;
--
2.11.0
More information about the vlc-devel
mailing list