[MPlayer-cvslog] r19816 - trunk/libmpdemux/demux_mkv.c

eugeni subversion at mplayerhq.hu
Tue Sep 12 23:40:01 CEST 2006


Author: eugeni
Date: Tue Sep 12 23:40:01 2006
New Revision: 19816

Modified:
   trunk/libmpdemux/demux_mkv.c

Log:
Fix block duration calculation in mkv demuxer.
According to specs, BlockDuration value is based on TimecodeScale.


Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Tue Sep 12 23:40:01 2006
@@ -3488,6 +3488,7 @@
                     block_duration = ebml_read_uint (s, &l);
                     if (block_duration == EBML_UINT_INVALID)
                       return 0;
+                    block_duration *= mkv_d->tc_scale / 1000000.0;
                     break;
                   }
 



More information about the MPlayer-cvslog mailing list