]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libxavs2.c
avcodec/ffwavesynth: Fix integer overflows in pink noise addition
[ffmpeg] / libavcodec / libxavs2.c
index d5c455797d9ac7677dc2d757d798aa1a99b52baa..0179a1eb15b26df9edd92599d834ac4da27f7904 100644 (file)
@@ -31,7 +31,7 @@
     int err; \
     av_strlcatf(opt_str, sizeof(opt_str), format, __VA_ARGS__); \
     err = cae->api->opt_set2(cae->param, name, opt_str); \
-    if (err) {\
+    if (err < 0) {\
         av_log(avctx, AV_LOG_WARNING, "Invalid value for %s: %s\n", name, opt_str);\
     }\
 } while(0);