diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-24 23:57:29 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-24 23:57:29 +0000 |
commit | dfbbbdc0bf94d39cbef290decefbc951a809f742 (patch) | |
tree | 92343ab070c763dc04642094b23d80e89d870d21 /libavformat/matroskadec.c | |
parent | 653fb2f80cf94f6dd8bbaa6139feb94bf61926e5 (diff) | |
download | ffmpeg-dfbbbdc0bf94d39cbef290decefbc951a809f742.tar.gz |
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
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index ece7ecf278..d990b58064 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; |