mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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
This commit is contained in:
parent
7a033e08ea
commit
d40a999a1c
@ -375,7 +375,7 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
|
|||||||
|
|
||||||
offset = sys->frame_size * timestamp;
|
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;
|
else if (offset < 0) offset = 0;
|
||||||
|
|
||||||
return offset;
|
return offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user