# HG changeset patch # User aurel # Date 1219622249 0 # Node ID 7814581e98ff4c5c13052d4a41743d6f72aa918a # Parent 9e9dce9660e465cad1f88fc358bcd0ff63ec316d matroskadec: don't try to seek to negative timestamp matroska timestamps are unsigned diff -r 9e9dce9660e4 -r 7814581e98ff matroskadec.c --- a/matroskadec.c Sun Aug 24 23:54:14 2008 +0000 +++ b/matroskadec.c Sun Aug 24 23:57:29 2008 +0000 @@ -1642,6 +1642,9 @@ 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;