mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
clear internal queue when seeking
Originally committed as revision 11351 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
34c9c1baf4
commit
243cc4c34a
@ -2688,6 +2688,8 @@ matroska_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp,
|
|||||||
if (index < 0)
|
if (index < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
matroska_clear_queue(matroska);
|
||||||
|
|
||||||
/* do the seek */
|
/* do the seek */
|
||||||
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
|
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
|
||||||
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
|
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
|
||||||
|
Loading…
Reference in New Issue
Block a user