Browse Source

libx264: fix generic boolean support

Fixes Ticket660

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
4a8e3324fb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/libx264.c

+ 4
- 2
libavcodec/libx264.c View File

@@ -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;
}


Loading…
Cancel
Save