mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
matroskadec: don't try to seek to negative timestamp
matroska timestamps are unsigned Originally committed as revision 14956 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
653fb2f80c
commit
dfbbbdc0bf
@ -1642,6 +1642,9 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
|
||||
AVStream *st = s->streams[stream_index];
|
||||
int index;
|
||||
|
||||
if (timestamp < 0)
|
||||
timestamp = 0;
|
||||
|
||||
index = av_index_search_timestamp(st, timestamp, flags);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user