[MPlayer-cvslog] r19817 - trunk/libmpdemux/demux_mkv.c
eugeni
subversion at mplayerhq.hu
Tue Sep 12 23:45:06 CEST 2006
Author: eugeni
Date: Tue Sep 12 23:45:06 2006
New Revision: 19817
Modified:
trunk/libmpdemux/demux_mkv.c
Log:
Fix seeking in Matroska files with non-default TimecodeScale value.
Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c (original)
+++ trunk/libmpdemux/demux_mkv.c Tue Sep 12 23:45:06 2006
@@ -3660,7 +3660,8 @@
for (i=0; i < mkv_d->num_indexes; i++)
if (mkv_d->indexes[i].tnum == demuxer->video->id)
{
- diff = target_timecode + mkv_d->first_tc - (int64_t) mkv_d->indexes[i].timecode;
+ diff = target_timecode + mkv_d->first_tc -
+ (int64_t) mkv_d->indexes[i].timecode * mkv_d->tc_scale / 1000000.0;
if ((flags & 1 || target_timecode <= mkv_d->last_pts*1000)
&& diff >= 0 && diff < min_diff)
More information about the MPlayer-cvslog
mailing list