diff options
author | Sasi Inguva <isasi-at-google.com@ffmpeg.org> | 2016-07-21 18:52:41 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-08-23 13:15:16 +0200 |
commit | 08ab94e6a638543a163f7a0ef04d8894ac7e3c81 (patch) | |
tree | 249a19eca78ca89e720e9b227b1f3fc04857db16 | |
parent | d7ab6e93a688688ad27c03ba3ba15711e59036dc (diff) | |
download | ffmpeg-08ab94e6a638543a163f7a0ef04d8894ac7e3c81.tar.gz |
libx264: Increase x264 opts character limit to 4096
Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 282477bf4534439ecb06f14d46446a4f1ab82284)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/libx264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 8830f592cc..fa3aea9375 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -640,8 +640,8 @@ static av_cold int X264_init(AVCodecContext *avctx) 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); |