[FFmpeg-cvslog] libx264: Increase x264 opts character limit to 4096

Sasi Inguva git at videolan.org
Fri Aug 26 15:41:03 EEST 2016


ffmpeg | branch: release/2.8 | Sasi Inguva <isasi-at-google.com at ffmpeg.org> | Thu Jul 21 18:52:41 2016 -0700| [0f6e244bb0090ebe84147d5fab9429b29a2c1cc4] | committer: Michael Niedermayer

libx264: Increase x264 opts character limit to 4096

Signed-off-by: Sasi Inguva <isasi at google.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 282477bf4534439ecb06f14d46446a4f1ab82284)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index a54743e..4c92144 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -698,8 +698,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);



More information about the ffmpeg-cvslog mailing list