summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2007-03-12 14:51:18 +0000
committerDiego Biurrun <diego@biurrun.de>2007-03-12 14:51:18 +0000
commitecb4a895b29ac07c5a650956ca766ef14af978de (patch)
tree804bf30e68a76948e56f31826da4377b88b15bc5 /libavformat/http.c
parent792098c2ec867e151b8457d6b99978cd074db04e (diff)
Properly initialize filesize during input buffer initialization.
patch by Ronald S. Bultje, rbultje ronald.bitfreak net Originally committed as revision 8343 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 46b18140f8..9e8fce59ab 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -242,6 +242,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
s->buf_end = s->buffer;
s->line_count = 0;
s->off = 0;
+ s->filesize = -1;
if (post) {
sleep(1);
return 0;