[vlc-devel] [PATCH] Fix MKV PCR "free-run" when a track is disabled.

Denis Charmet typx at dinauz.org
Sat Aug 18 19:30:50 CEST 2012


---
 modules/demux/mkv/mkv.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 1bd4a4f..fa7d6cc 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -504,6 +504,8 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
         if( !b )
         {
             tk->b_inited = false;
+            if( tk->fmt.i_cat == VIDEO_ES || tk->fmt.i_cat == AUDIO_ES )
+                tk->i_last_dts = i_pts;
             return;
         }
     }
-- 
1.7.10.4




More information about the vlc-devel mailing list