git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a033e0
)
Fix seeking in DV when filesize is unknown.
author
Tomas Härdin
<Tomas.hardin@codemill.se>
Tue, 23 Mar 2010 17:22:25 +0000
(17:22 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Tue, 23 Mar 2010 17:22:25 +0000
(17:22 +0000)
Patch by Tomas Härdin, tomas D hardin A codemill D se
Originally committed as revision 22645 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/dv.c
patch
|
blob
|
history
diff --git
a/libavformat/dv.c
b/libavformat/dv.c
index
085e8d2
..
af8bb92
100644
(file)
--- a/
libavformat/dv.c
+++ b/
libavformat/dv.c
@@
-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;
return offset;
else if (offset < 0) offset = 0;
return offset;