summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-11 02:07:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-11 02:07:31 +0000
commit31290c2b9bdf64c7aad83a76d1643c4ccd374492 (patch)
tree57c3d1ae7a6fb230d0f10574ef41d7b321941f10 /libavformat/avio.c
parentee76016c79c14d3ccf22d740e22a6993f1338b0c (diff)
avoid seeking to the end, as it confuses some crappy code
Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 5a1bb966be..7627f4a405 100644
--- 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;
}