]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libx264.c
Merge commit '08859d19b429c522d6494c186656f4a2d3ff8e21'
[ffmpeg] / libavcodec / libx264.c
index 51c28a4d9012a527d615bd1941f0fd8db3f6604e..f36d7f5ca2587279194b7b15623dd663462224a1 100644 (file)
@@ -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);               \