Przeglądaj źródła

demux: ts: set DTSH descriptor

Francois Cartegnie 7 lat temu
rodzic
commit
4a4ecf29b7
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      modules/mux/mpeg/tables.c

+ 6 - 1
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)