[vlc-devel] [PATCH 2/2] mkv: remove DTS padding hack

Thomas Guillem thomas at gllm.fr
Tue Jan 10 18:24:53 CET 2017


This case is now handled by the packetizer
---
 modules/demux/mkv/mkv.cpp | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 5be45edce4..c3f9aceb4c 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -35,10 +35,6 @@
 
 #include <new>
 
-extern "C" {
-#include "../../packetizer/dts_header.h"
-}
-
 #include <vlc_fs.h>
 #include <vlc_url.h>
 
@@ -619,18 +615,6 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
             continue;
          }
 
-        case VLC_CODEC_DTS:
-        {
-            /* Check if packetization is correct and without padding.
-             * example: Test_mkv_div3_DTS_1920x1080_1785Kbps_23,97fps.mkv */
-            vlc_dts_header_t dts;
-            if( vlc_dts_header_Parse( &dts, p_block->p_buffer, p_block->i_buffer )
-                == VLC_SUCCESS && dts.i_frame_size > 0 )
-                p_block->i_buffer = __MIN(p_block->i_buffer,
-                                          (size_t)dts.i_frame_size);
-            break;
-        }
-
          case VLC_CODEC_OPUS:
             mtime_t i_length = i_duration * track. f_timecodescale *
                     (double) p_segment->i_timescale / 1000.0;
-- 
2.11.0



More information about the vlc-devel mailing list