Merge commit '7bdd2ff6825951f7a6a6008303acfce7c2a63532'
[ffmpeg.git] / libavformat / http.c
index 2bac935..567ce80 100644 (file)
@@ -658,7 +658,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
 {
     HTTPContext *s = h->priv_data;
     int post, err;
-    char headers[4096] = "";
+    char headers[HTTP_HEADERS_SIZE] = "";
     char *authstr = NULL, *proxyauthstr = NULL;
     int64_t off = s->off;
     int len = 0;