[vlc-commits] Fix MKV PCR "free-run" when a track is disabled.
    Denis Charmet 
    git at videolan.org
       
    Wed Aug 22 10:30:52 CEST 2012
    
    
  
vlc | branch: master | Denis Charmet <typx at dinauz.org> | Sat Aug 18 19:30:50 2012 +0200| [b9f859f6ae408ed9d4e2c26394ac27f01b44d292] | committer: Jean-Baptiste Kempf
Fix MKV PCR "free-run" when a track is disabled.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9f859f6ae408ed9d4e2c26394ac27f01b44d292
---
 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 16b60f0..90736e2 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -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;
         }
     }
    
    
More information about the vlc-commits
mailing list