[MPlayer-cvslog] r33323 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Sun Apr 24 23:32:36 CEST 2011
Author: reimar
Date: Sun Apr 24 23:32:36 2011
New Revision: 33323
Log:
Improve seeking for files where start_time is not (properly) set.
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Sun Apr 24 18:13:25 2011 (r33322)
+++ trunk/libmpdemux/demux_lavf.c Sun Apr 24 23:32:36 2011 (r33323)
@@ -662,7 +662,8 @@ static void demux_seek_lavf(demuxer_t *d
mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_seek_lavf(%p, %f, %f, %d)\n", demuxer, rel_seek_secs, audio_delay, flags);
if (flags & SEEK_ABSOLUTE) {
- priv->last_pts = priv->avfc->start_time;
+ priv->last_pts = priv->avfc->start_time != AV_NOPTS_VALUE ?
+ priv->avfc->start_time : 0;
} else {
if (rel_seek_secs < 0) avsflags = AVSEEK_FLAG_BACKWARD;
}
More information about the MPlayer-cvslog
mailing list