[vlc-devel] [PATCH] mkv: packetize MPEG-2 content

Steve Lhomme robux4 at videolabs.io
Wed Oct 18 09:45:45 CEST 2017


Some tools like MakeMKV don't packetize the data correctly.

Fixes #18916
---
 modules/demux/mkv/matroska_segment_parse.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index edc7c9880a..ffd6a9a4aa 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1512,6 +1512,7 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
         }
         S_CASE("V_MPEG2") {
             vars.p_fmt->i_codec = VLC_CODEC_MPGV;
+            vars.p_fmt->b_packetized = false;
             fill_extra_data( vars.p_tk, 0 );
         }
         S_CASE("V_THEORA") {
-- 
2.14.2



More information about the vlc-devel mailing list