summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index c067c376b5..2ace2be203 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -1078,8 +1078,10 @@ redo:
* call the new API instead of relying on av_seek_frame() to do this
* for us.
*/
+ avio_flush(priv->avfc->pb);
av_seek_frame(priv->avfc, 0, avio_tell(priv->avfc->pb),
AVSEEK_FLAG_BYTE);
+ avio_flush(priv->avfc->pb);
return DEMUXER_CTRL_OK;
default:
return DEMUXER_CTRL_NOTIMPL;