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
release/0.6
Tomas Härdin 15 years ago committed by Carl Eugen Hoyos
parent 7a033e08ea
commit d40a999a1c
  1. 2
      libavformat/dv.c

@ -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;

Loading…
Cancel
Save