]> git.sesse.net Git - vlc/commitdiff
Fix MKV PCR "free-run" when a track is disabled.
authorDenis Charmet <typx@dinauz.org>
Sat, 18 Aug 2012 17:30:50 +0000 (19:30 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 22 Aug 2012 08:23:00 +0000 (10:23 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.cpp

index 16b60f0f1f2bb20050437eab41a32574071b0c8c..90736e26a45a38c134f3e7cefffed5f20bb024dd 100644 (file)
@@ -505,6 +505,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;
         }
     }