From 7c40d8a36ef48ca7216e3d8f4eddf19e70d419e5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 10 Jan 2013 12:36:13 +0100 Subject: demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC This rules out possible avio buffering issues. --- demux/demux_lavf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'demux') 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; -- cgit v1.2.3