Browse Source

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
tags/v0.6
Tomas Härdin Carl Eugen Hoyos 15 years ago
parent
commit
d40a999a1c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dv.c

+ 1
- 1
libavformat/dv.c View File

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