[Mplayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.7,1.8

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Oct 11 00:24:10 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv30897

Modified Files:
	demux_lavf.c 
Log Message:
LIBAVFORMAT_BUILD >= 4619


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- demux_lavf.c	12 May 2004 22:48:15 -0000	1.7
+++ demux_lavf.c	10 Oct 2004 22:24:07 -0000	1.8
@@ -323,7 +323,11 @@
     lavf_priv_t *priv = demuxer->priv;
     mp_msg(MSGT_DEMUX,MSGL_DBG2,"demux_seek_lavf(%p, %f, %d)\n", demuxer, rel_seek_secs, flags);
     
+#if LIBAVFORMAT_BUILD < 4619
     av_seek_frame(priv->avfc, -1, priv->last_pts + rel_seek_secs*AV_TIME_BASE);
+#else
+    av_seek_frame(priv->avfc, -1, priv->last_pts + rel_seek_secs*AV_TIME_BASE, rel_seek_secs < 0 ? AVSEEK_FLAG_BACKWARD : 0);
+#endif
 }
 
 int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg)




More information about the MPlayer-cvslog mailing list