From 244ee48a8273faf28c95de617631137b2e0984ef Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Mon, 25 Aug 2008 00:17:31 +0000 Subject: [PATCH] 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 --- libavformat/matroskadec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 68d3aa38c..19dde9d41 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; } -- 2.11.0