changeset 4290:571504a844b1 libavformat

seek at 0 when timestamp requested is negative
author bcoudurier
date Tue, 27 Jan 2009 04:29:33 +0000
parents b54f835e3c5d
children f49e5d92ab26
files mov.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Mon Jan 26 23:39:22 2009 +0000
+++ b/mov.c	Tue Jan 27 04:29:33 2009 +0000
@@ -2014,6 +2014,8 @@
 
     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);