Commit d40a999a authored by Tomas Härdin's avatar Tomas Härdin Committed by Carl Eugen Hoyos

Fix seeking in DV when filesize is unknown.

Patch by Tomas Härdin, tomas D hardin A  codemill D se

Originally committed as revision 22645 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7a033e08
......@@ -375,7 +375,7 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
offset = sys->frame_size * timestamp;
if (offset > max_offset) offset = max_offset;
if (size >= 0 && offset > max_offset) offset = max_offset;
else if (offset < 0) offset = 0;
return offset;
......
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