Commit 08ab94e6 authored by Sasi Inguva's avatar Sasi Inguva Committed by Michael Niedermayer

libx264: Increase x264 opts character limit to 4096

Signed-off-by: 's avatarSasi Inguva <isasi@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 282477bf)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d7ab6e93
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment