mirror of https://github.com/mpv-player/mpv
fixed mp3 seeking near end of file
patch by ??? (sorry i can't find that mail) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8360 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5c59d9a81d
commit
6624dcbec4
|
@ -315,8 +315,9 @@ void demux_audio_seek(demuxer_t *demuxer,float rel_seek_secs,int flags){
|
|||
pos = base + (rel_seek_secs*sh_audio->i_bps);
|
||||
|
||||
if(demuxer->movi_end && pos >= demuxer->movi_end) {
|
||||
sh_audio->delay = (stream_tell(s) - demuxer->movi_start)/(float)sh_audio->i_bps;
|
||||
return;
|
||||
pos = demuxer->movi_end;
|
||||
//sh_audio->delay = (stream_tell(s) - demuxer->movi_start)/(float)sh_audio->i_bps;
|
||||
//return;
|
||||
} else if(pos < demuxer->movi_start)
|
||||
pos = demuxer->movi_start;
|
||||
|
||||
|
|
Loading…
Reference in New Issue