mov: dont clip timestamps at 0
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Aug 2012 23:27:52 +0000 (01:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Aug 2012 23:38:18 +0000 (01:38 +0200)
Fixes Ticket1251

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index 24387c8..f0aa85c 100644 (file)
@@ -3131,8 +3131,6 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
 
     if (stream_index >= s->nb_streams)
         return AVERROR_INVALIDDATA;
-    if (sample_time < 0)
-        sample_time = 0;
 
     st = s->streams[stream_index];
     sample = mov_seek_stream(s, st, sample_time, flags);