[MPlayer-cvslog] r22369 - trunk/libmpdemux/demux_mpg.c
nicodvb
subversion at mplayerhq.hu
Tue Feb 27 21:15:31 CET 2007
Author: nicodvb
Date: Tue Feb 27 21:15:31 2007
New Revision: 22369
Modified:
trunk/libmpdemux/demux_mpg.c
Log:
100000l: average != semidistance, fixed seeking to the middle position; patch by Zuxy meng (zuxy.megn gmail com)
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Tue Feb 27 21:15:31 2007
@@ -195,7 +195,7 @@ static demuxer_t* demux_mpg_open(demuxer
float first_pts = read_first_mpeg_pts_at_position(demuxer, demuxer->movi_start);
if(first_pts != -1.0)
{
- float middle_pts = read_first_mpeg_pts_at_position(demuxer, (demuxer->movi_end - demuxer->movi_start)/2);
+ float middle_pts = read_first_mpeg_pts_at_position(demuxer, (demuxer->movi_end + demuxer->movi_start)/2);
if(middle_pts != -1.0)
{
float final_pts = read_first_mpeg_pts_at_position(demuxer, demuxer->movi_end - TIMESTAMP_PROBE_LEN);
More information about the MPlayer-cvslog
mailing list