mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
4e04e1b81e
commit
c18899d432
@ -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_keyframe = !(flags & AVSEEK_FLAG_ANY);
|
||||||
matroska->skip_to_timecode = st->index_entries[index].timestamp;
|
matroska->skip_to_timecode = st->index_entries[index].timestamp;
|
||||||
matroska->done = 0;
|
matroska->done = 0;
|
||||||
|
matroska->num_levels = 0;
|
||||||
ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
|
ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user