utils: flush on successfull av_seek_frame_binary()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-10-21 22:26:13 +02:00
parent db1347f66e
commit f73f68b894
2 changed files with 15 additions and 14 deletions

View File

@@ -1602,6 +1602,7 @@ int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts
if ((ret = avio_seek(s->pb, pos, SEEK_SET)) < 0)
return ret;
ff_read_frame_flush(s);
av_update_cur_dts(s, st, ts);
return 0;