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;