[FFmpeg-cvslog] http: larger buffer for long URIs

Duncan Salerno git at videolan.org
Sun Sep 23 02:59:07 CEST 2012


ffmpeg | branch: master | Duncan Salerno <duncan.salerno at gmail.com> | Sat Sep 22 21:17:36 2012 +0100| [0a8cc1179a61f586a365b684470239cfcfd70ab2] | committer: Michael Niedermayer

http: larger buffer for long URIs

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a8cc1179a61f586a365b684470239cfcfd70ab2
---

 libavformat/http.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 376ff9e..85ed7a5 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;



More information about the ffmpeg-cvslog mailing list