]> git.sesse.net Git - vlc/commitdiff
* fix a timecode/stuttering problem with VFW tracks
authorSteve Lhomme <robux@videolan.org>
Sat, 3 Sep 2005 20:56:32 +0000 (20:56 +0000)
committerSteve Lhomme <robux@videolan.org>
Sat, 3 Sep 2005 20:56:32 +0000 (20:56 +0000)
modules/demux/mkv.cpp

index 164861137e68942926ea6c9dacddf5f121f37e47..966c00de55d1aa7d610a882e07617d31b607f39e 100644 (file)
@@ -1903,6 +1903,10 @@ msg_Dbg( p_demux, "block i_dts: "I64Fd" / i_pts: "I64Fd, p_block->i_dts, p_block
         {
             p_block->i_length = i_duration * 1000;
         }
+        if( !strcmp( tk->psz_codec, "V_MS/VFW/FOURCC" ) )
+        {
+            p_block->i_pts = 0;
+        }
 
         es_out_Send( p_demux->out, tk->p_es, p_block );