X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttp.c;h=6c39da1a8b8ab5bcf07d2cb58ef3969181ec80ed;hb=1e40dc920a838e35f1483b20bfcd417437e68741;hp=20545ed1f89dcb92efc58beac5606279aeecac1a;hpb=3b8b6d837e49bb6a7111b866b2a9180577e67901;p=ffmpeg diff --git a/libavformat/http.c b/libavformat/http.c index 20545ed1f89..6c39da1a8b8 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