[FFmpeg-cvslog] r14956 - trunk/libavformat/matroskadec.c

aurel subversion
Mon Aug 25 01:57:30 CEST 2008


Author: aurel
Date: Mon Aug 25 01:57:29 2008
New Revision: 14956

Log:
matroskadec: don't try to seek to negative timestamp
matroska timestamps are unsigned


Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Mon Aug 25 01:57:29 2008
@@ -1642,6 +1642,9 @@ static int matroska_read_seek(AVFormatCo
     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;




More information about the ffmpeg-cvslog mailing list