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:
arpi 2002-12-04 23:51:44 +00:00
parent 5c59d9a81d
commit 6624dcbec4
1 changed files with 3 additions and 2 deletions

View File

@ -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;