summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-02-12 14:07:04 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-02-13 20:04:09 +0100
commitc18899d432059b963855afbe8ab68776985ef306 (patch)
tree3ae89a4de1b30dc416bb50e30948a71a2cc4b63b /libavformat/matroskadec.c
parent4e04e1b81e4e31b7a11b3b5033ac97d2da3b866d (diff)
matroskadec: reset num_levels on seek.
Otherwise when we run into levels beyond the max. allowed playback will be permanently broken. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
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 df54762c5e..5c1cc87f36 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2067,6 +2067,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
matroska->skip_to_timecode = st->index_entries[index].timestamp;
matroska->done = 0;
+ matroska->num_levels = 0;
ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
return 0;
}