lavc/libxavs2: fix parameter setting result determination
authorhwren <hwrenx@126.com>
Mon, 14 Oct 2019 13:22:42 +0000 (21:22 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Oct 2019 15:07:50 +0000 (17:07 +0200)
Signed-off-by: hwren <hwrenx@126.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libxavs2.c

index d5c4557..0179a1e 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);