[FFmpeg-cvslog] libx264: silence: warning: the address of val will always evaluate as true
Michael Niedermayer
git at videolan.org
Mon May 20 16:50:50 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 20 16:38:21 2013 +0200| [2187600f47eb8c5e055c9d6d28e46d872ab035f2] | committer: Michael Niedermayer
libx264: silence: warning: the address of val will always evaluate as true
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2187600f47eb8c5e055c9d6d28e46d872ab035f2
---
libavcodec/libx264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 51c28a4..f36d7f5 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); \
More information about the ffmpeg-cvslog
mailing list