[vlc-commits] demux: ts: set DTSH descriptor

Francois Cartegnie git at videolan.org
Wed Mar 14 11:30:13 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 14 11:13:51 2018 +0100| [4a4ecf29b795bfb65cfd87913acbbb337c379839] | committer: Francois Cartegnie

demux: ts: set DTSH descriptor

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

 modules/mux/mpeg/tables.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/tables.c b/modules/mux/mpeg/tables.c
index ba9eb73633..0d0580ed68 100644
--- a/modules/mux/mpeg/tables.c
+++ b/modules/mux/mpeg/tables.c
@@ -43,6 +43,7 @@
 #include "pes.h"
 
 #include "../../codec/jpeg2000.h"
+#include "../../packetizer/dts_header.h"
 
 #include <assert.h>
 
@@ -545,7 +546,11 @@ void BuildPMT( dvbpsi_t *p_dvbpsi, vlc_object_t *p_object,
         {
             uint8_t i_ver;
             /* DTS registration descriptor (ETSI TS 101 154 Annex F) */
-            if(vlc_popcount(p_stream->fmt->audio.i_frame_length) == 1)
+            if( p_stream->fmt->i_profile == PROFILE_DTS_HD )
+            {
+                i_ver = 'H';
+            }
+            else if(vlc_popcount(p_stream->fmt->audio.i_frame_length) == 1)
             {
                 i_ver = ctz( p_stream->fmt->audio.i_frame_length >> 8 );
                 if(i_ver == 0 || i_ver > 3)



More information about the vlc-commits mailing list