[vlc-commits] demux: psi: fill DTS profile
Thomas Guillem
git at videolan.org
Wed Dec 20 19:14:18 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 14:08:32 2017 +0100| [f35b3d97915e155807f6b11b96b45eb1efbfb58f] | committer: Thomas Guillem
demux: psi: fill DTS profile
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f35b3d97915e155807f6b11b96b45eb1efbfb58f
---
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;
More information about the vlc-commits
mailing list