From f70f019bf34d3d378a62dbed6569cd246dc0efdd Mon Sep 17 00:00:00 2001
From: Joey Smith <joeysmith@gmail.com>
Date: Sun, 10 May 2020 23:05:51 -0600
Subject: [PATCH] libavformat/http.c: BUFFER_SIZE = MAX_URL_SIZE +
 HTTP_HEADERS_SIZE

---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index c9415578aa..afc024d98a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -46,7 +46,7 @@
 /* The IO buffer size is unrelated to the max URL size in itself, but needs
  * to be large enough to fit the full request headers (including long
  * path names). */
-#define BUFFER_SIZE   MAX_URL_SIZE
+#define BUFFER_SIZE   (MAX_URL_SIZE + HTTP_HEADERS_SIZE)
 #define MAX_REDIRECTS 8
 #define HTTP_SINGLE   1
 #define HTTP_MUTLI    2
-- 
2.24.3

