mirror of https://github.com/mpv-player/mpv
100000l: average != semidistance, fixed seeking to the middle position; patch by Zuxy meng (zuxy.megn gmail com)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22369 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
913a6f2cc1
commit
09262ff552
|
@ -195,7 +195,7 @@ static demuxer_t* demux_mpg_open(demuxer_t* 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);
|
||||
|
|
Loading…
Reference in New Issue