diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-20 16:38:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-20 16:39:00 +0200 |
commit | 2187600f47eb8c5e055c9d6d28e46d872ab035f2 (patch) | |
tree | 6b4b1d294e72d82e8cab35ca77d111f96b69e40a /libavcodec/libx264.c | |
parent | 9a7f1519aac404104a74e10439a077c9a7b98c61 (diff) | |
download | ffmpeg-2187600f47eb8c5e055c9d6d28e46d872ab035f2.tar.gz |
libx264: silence: warning: the address of val will always evaluate as true
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 51c28a4d90..f36d7f5ca2 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -237,7 +237,7 @@ static av_cold int X264_close(AVCodecContext *avctx) #define OPT_STR(opt, param) \ do { \ int ret; \ - if (param && (ret = x264_param_parse(&x4->params, opt, param)) < 0) { \ + if (param!=NULL && (ret = x264_param_parse(&x4->params, opt, param)) < 0) { \ if(ret == X264_PARAM_BAD_NAME) \ av_log(avctx, AV_LOG_ERROR, \ "bad option '%s': '%s'\n", opt, param); \ |