[FFmpeg-devel] [PATCH] avformat/http: double header length to 8192

Alexandru Mihaiuc foxmsft at hotmail.com
Mon Sep 28 00:53:25 EEST 2020


The old length of 4096 chars for the headers is not enough when sites
expect a significant amount of cookies - for example microsoftstream.

Signed-off-by: foxmsft <foxmsft at hotmail.com>
---
 libavformat/http.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.h b/libavformat/http.h
index 5557ce9b58..ce1dc7d4eb 100644
--- a/libavformat/http.h
+++ b/libavformat/http.h
@@ -24,7 +24,7 @@

 #include "url.h"

-#define HTTP_HEADERS_SIZE 4096
+#define HTTP_HEADERS_SIZE 8192

 /**
  * Initialize the authentication state based on another HTTP URLContext.
--
2.28.0.windows.1



More information about the ffmpeg-devel mailing list