diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-27 04:29:33 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-27 04:29:33 +0000 |
commit | 8dc81a4524ba221cbc23bb36c6fabbbfec1ab539 (patch) | |
tree | 35826f104698a4a842271350857f5b304e86786b /libavformat/mov.c | |
parent | eded5c4309da82f84dee4b524f3b70646c3bb7bc (diff) | |
download | ffmpeg-8dc81a4524ba221cbc23bb36c6fabbbfec1ab539.tar.gz |
seek at 0 when timestamp requested is negative
Originally committed as revision 16815 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 0a93444d18..5dd2acef8f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2014,6 +2014,8 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti if (stream_index >= s->nb_streams) return -1; + if (sample_time < 0) + sample_time = 0; st = s->streams[stream_index]; sample = mov_seek_stream(st, sample_time, flags); |