changeset 22351:1f40a27bd2ad

100000l: average != semidistance, fixed seeking to the middle position; patch by Zuxy meng (zuxy.megn gmail com)
author nicodvb
date Tue, 27 Feb 2007 20:15:31 +0000
parents 0002ae6bc2a5
children 3c9d0592f08a
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Tue Feb 27 19:49:29 2007 +0000
+++ b/libmpdemux/demux_mpg.c	Tue Feb 27 20:15:31 2007 +0000
@@ -195,7 +195,7 @@
       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);