Commit 17c4a8c9 authored by cehoyos's avatar cehoyos

Fix seeking in DV when filesize is unknown.

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22645 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d74e75bd
......@@ -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