libx264: Increase x264 opts character limit to 4096
authorSasi Inguva <isasi-at-google.com@ffmpeg.org>
Fri, 22 Jul 2016 01:52:41 +0000 (18:52 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 22 Jul 2016 14:37:44 +0000 (16:37 +0200)
Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libx264.c

index c8f2380..b730c91 100644 (file)
@@ -777,8 +777,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
     if(x4->x264opts){
         const char *p= x4->x264opts;
         while(p){
-            char param[256]={0}, val[256]={0};
-            if(sscanf(p, "%255[^:=]=%255[^:]", param, val) == 1){
+            char param[4096]={0}, val[4096]={0};
+            if(sscanf(p, "%4095[^:=]=%4095[^:]", param, val) == 1){
                 OPT_STR(param, "1");
             }else
                 OPT_STR(param, val);