diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-05 22:10:59 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-05 22:10:59 +0000 |
commit | 3f4d87d7952343b033b18b2fa644542dd3348ada (patch) | |
tree | c3d3e2fddde86abac99cdf137a4dfab8adb65854 /libmpdemux | |
parent | 752a64662e1d18e396c112498d8d406619bdc0c3 (diff) | |
download | mpv-3f4d87d7952343b033b18b2fa644542dd3348ada.tar.bz2 mpv-3f4d87d7952343b033b18b2fa644542dd3348ada.tar.xz |
fix seeking with -hr-mp3-seek. maybe not the best fix (why is last_pts
ever infinite?!?!) but at least it makes it work... :)
patch by Balazs KOSSOVICS (tevefeju AT freemail.hu):
Hi!
When we listening music with "-hr-mp3-seek" option, than there is a
negative value at the first rewinds in the statusrange (-52 hours, some
minutes). The patch is against this.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13257 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c index 4207265684..001f797a13 100644 --- a/libmpdemux/demux_audio.c +++ b/libmpdemux/demux_audio.c @@ -373,6 +373,7 @@ void demux_audio_seek(demuxer_t *demuxer,float rel_seek_secs,int flags){ priv = demuxer->priv; if(priv->frmt == MP3 && hr_mp3_seek && !(flags & 2)) { + if(isinf(priv->last_pts)) priv->last_pts=0; len = (flags & 1) ? rel_seek_secs - priv->last_pts : rel_seek_secs; if(len < 0) { stream_seek(s,demuxer->movi_start); |