summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_audio.c
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-05 22:10:59 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-05 22:10:59 +0000
commit3f4d87d7952343b033b18b2fa644542dd3348ada (patch)
treec3d3e2fddde86abac99cdf137a4dfab8adb65854 /libmpdemux/demux_audio.c
parent752a64662e1d18e396c112498d8d406619bdc0c3 (diff)
downloadmpv-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/demux_audio.c')
-rw-r--r--libmpdemux/demux_audio.c1
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);