Commit 42caa0b7 authored by bcoudurier's avatar bcoudurier

rewind completely if sample time is negative

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6629 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bd17dfe
......@@ -1033,8 +1033,10 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
int64_t seconds;
int i;
if (!s->bit_rate || sample_time < 0)
if (!s->bit_rate)
return -1;
if (sample_time < 0)
sample_time = 0;
seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);
url_fseek(&s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
/* sync on KLV essence element */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment