[MPlayer-users] Patch for mp3 seek to end of file bug
Erik Simonsen
erik at pinksheets.com
Thu Nov 14 21:25:02 CET 2002
This is a patch for libmpdemux/demux_audio.c. It fixes the problem
where skipping an mp3 to the end of a song didn't work. Usually, when
you skip an mp3 with 45 seconds remaining forward 60 seconds, mplayer
would refuse to skip, this patch just makes the song end. I've tried it
out and I don't think it screws anything up. I think this is the
preferable behavior, so I'd really like to see it make it into the
source. I commented out the old lines to preserve them just in case.
Thanks guys.
-------------- next part --------------
--- demux_audio.c Wed Nov 6 18:54:26 2002
+++ demux_audio.patched Thu Nov 14 15:12:47 2002
@@ -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;
More information about the MPlayer-users
mailing list