projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3203b6
)
proper error handling in file size retrieval, patch by Ronald S. Bultje rbultje at...
author
Ronald S. Bultje
<rsbultje@gmail.com>
Sun, 28 Jan 2007 02:38:02 +0000
(
02:38
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sun, 28 Jan 2007 02:38:02 +0000
(
02:38
+0000)
Originally committed as revision 7736 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/aviobuf.c
patch
|
blob
|
history
diff --git
a/libavformat/aviobuf.c
b/libavformat/aviobuf.c
index
4a595e2
..
ab8fc1d
100644
(file)
--- a/
libavformat/aviobuf.c
+++ b/
libavformat/aviobuf.c
@@
-172,7
+172,9
@@
offset_t url_fsize(ByteIOContext *s)
return -EPIPE;
size = s->seek(s->opaque, 0, AVSEEK_SIZE);
if(size<0){
- size = s->seek(s->opaque, -1, SEEK_END) + 1;
+ if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)
+ return size;
+ size++;
s->seek(s->opaque, s->pos, SEEK_SET);
}
return size;