changeset 13607:3d262519187b

LIBAVFORMAT_BUILD >= 4619
author michael
date Sun, 10 Oct 2004 22:24:07 +0000
parents 73086ea05489
children fffd0fe33ad4
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sun Oct 10 19:51:18 2004 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Oct 10 22:24:07 2004 +0000
@@ -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)