Commit be2a81c0 authored by aurel's avatar aurel

matroskadec: don't try to seek to negative timestamp

matroska timestamps are unsigned


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14956 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 40b12d95
...@@ -1642,6 +1642,9 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, ...@@ -1642,6 +1642,9 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
AVStream *st = s->streams[stream_index]; AVStream *st = s->streams[stream_index];
int index; int index;
if (timestamp < 0)
timestamp = 0;
index = av_index_search_timestamp(st, timestamp, flags); index = av_index_search_timestamp(st, timestamp, flags);
if (index < 0) if (index < 0)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment