aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-27 04:29:33 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-27 04:29:33 +0000
commit8dc81a4524ba221cbc23bb36c6fabbbfec1ab539 (patch)
tree35826f104698a4a842271350857f5b304e86786b /libavformat/mov.c
parenteded5c4309da82f84dee4b524f3b70646c3bb7bc (diff)
downloadffmpeg-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.c2
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);