mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 03:10:55 +00:00
demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC
This rules out possible avio buffering issues.
This commit is contained in:
parent
6c79888f7d
commit
7c40d8a36e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user