summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-25 00:17:31 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-25 00:17:31 +0000
commit244ee48a8273faf28c95de617631137b2e0984ef (patch)
treeb40c983d637a06ded72d81a10408bfc731cc47b1 /libavformat/matroskadec.c
parent0f646a2233fed90fe9c2c403805b889eb840f3df (diff)
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
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 68d3aa38c1..19dde9d414 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;
}