[MPlayer-cvslog] r35697 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Tue Dec 18 20:33:30 CET 2012
Author: reimar
Date: Tue Dec 18 20:33:29 2012
New Revision: 35697
Log:
Set AVSEEK_FLAG_BACKWARD also when seeking to the start of a file.
Fixes -loop 0 with some files where libavformat seems to set
a slightly off broken start_time value (probably, I have
not yet analyzed in detail).
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Tue Dec 18 11:51:55 2012 (r35696)
+++ trunk/libmpdemux/demux_lavf.c Tue Dec 18 20:33:29 2012 (r35697)
@@ -684,9 +684,8 @@ static void demux_seek_lavf(demuxer_t *d
if (flags & SEEK_ABSOLUTE) {
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;
}
+ if (rel_seek_secs <= 0) avsflags = AVSEEK_FLAG_BACKWARD;
if (flags & SEEK_FACTOR) {
if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE)
return;
More information about the MPlayer-cvslog
mailing list