# HG changeset patch # User bcoudurier # Date 1233030573 0 # Node ID 571504a844b16e6712093be7664dcbb76d77e369 # Parent b54f835e3c5d493261173b2b5b5e750a3e9fd72d seek at 0 when timestamp requested is negative diff -r b54f835e3c5d -r 571504a844b1 mov.c --- 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);