changeset 8359:a93461f7e5ef

fixed mp3 seeking near end of file patch by ??? (sorry i can't find that mail)
author arpi
date Wed, 04 Dec 2002 23:51:44 +0000
parents ecf6a4cf3272
children ad75993b8deb
files libmpdemux/demux_audio.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Wed Dec 04 23:41:04 2002 +0000
+++ b/libmpdemux/demux_audio.c	Wed Dec 04 23:51:44 2002 +0000
@@ -315,8 +315,9 @@
     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;