From: Ronald S. Bultje Date: Mon, 12 Mar 2007 14:51:18 +0000 (+0000) Subject: Properly initialize filesize during input buffer initialization. X-Git-Tag: v0.5~9704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecb4a895b29ac07c5a650956ca766ef14af978de;p=platform%2Fupstream%2Flibav.git 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 --- diff --git a/libavformat/http.c b/libavformat/http.c index 46b1814..9e8fce5 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;