Commit 4a8e3324 authored by Michael Niedermayer's avatar Michael Niedermayer

libx264: fix generic boolean support

Fixes Ticket660
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b50be4e3
......@@ -350,8 +350,10 @@ static av_cold int X264_init(AVCodecContext *avctx)
const char *p= x4->x264opts;
while(p){
char param[256]={0}, val[256]={0};
sscanf(p, "%255[^:=]=%255[^:]", param, val);
OPT_STR(param, val);
if(sscanf(p, "%255[^:=]=%255[^:]", param, val) == 1){
OPT_STR(param, "1");
}else
OPT_STR(param, val);
p= strchr(p, ':');
p+=!!p;
}
......
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