demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC

This rules out possible avio buffering issues.
This commit is contained in:
Rudolf Polzer 2013-01-10 12:36:13 +01:00
parent 6c79888f7d
commit 7c40d8a36e
1 changed files with 2 additions and 0 deletions

View File

@ -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;