Commit e2963e8a authored by reimar's avatar reimar

Make pcm_read_seek treat negative time stamps as 0, this avoids incorrectly

seeking before data_offset and is more consistent with how the generic index
seeking code handles it.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17964 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d16152aa
......@@ -232,6 +232,7 @@ int pcm_read_seek(AVFormatContext *s,
if (block_align <= 0 || byte_rate <= 0)
return -1;
if (timestamp < 0) timestamp = 0;
/* compute the position by aligning it to block_align */
pos = av_rescale_rnd(timestamp * byte_rate,
......
This diff is collapsed.
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