mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 12:19:52 +00:00
matroskadec: unset matroska->done when seeking
just in case someone try to seek back after reaching the end of file Originally committed as revision 14960 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0f646a2233
commit
244ee48a82
@ -1670,6 +1670,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
|
||||
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
|
||||
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
|
||||
matroska->skip_to_stream = st;
|
||||
matroska->done = 0;
|
||||
av_update_cur_dts(s, st, st->index_entries[index].timestamp);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user