[FFmpeg-cvslog] libx264: fix generic boolean support
Michael Niedermayer
git at videolan.org
Thu Dec 1 20:47:03 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 1 20:38:14 2011 +0100| [4a8e3324fb13f32c2288e698f44222c4f5caa3f0] | committer: Michael Niedermayer
libx264: fix generic boolean support
Fixes Ticket660
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a8e3324fb13f32c2288e698f44222c4f5caa3f0
---
libavcodec/libx264.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 7410112..fafc3fd 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list