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:
ee76016
)
avoid seeking to the end, as it confuses some crappy code
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Apr 2004 02:07:31 +0000
(
02:07
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Apr 2004 02:07:31 +0000
(
02:07
+0000)
Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
5a1bb96
..
7627f4a
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-147,7
+147,7
@@
offset_t url_filesize(URLContext *h)
offset_t pos, size;
pos = url_seek(h, 0, SEEK_CUR);
- size = url_seek(h,
0, SEEK_END)
;
+ size = url_seek(h,
-1, SEEK_END)+1
;
url_seek(h, pos, SEEK_SET);
return size;
}