diff --git a/libavformat/http.c b/libavformat/http.c index 376ff9efd9..85ed7a5c81 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -33,7 +33,7 @@ only a subset of it. */ /* used for protocol handling */ -#define BUFFER_SIZE 1024 +#define BUFFER_SIZE 4096 #define MAX_REDIRECTS 8 typedef struct { @@ -380,7 +380,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path, { HTTPContext *s = h->priv_data; int post, err; - char headers[1024] = ""; + char headers[4096] = ""; char *authstr = NULL, *proxyauthstr = NULL; int64_t off = s->off; int len = 0;