lavc/libxavs2: fix parameter setting result determination
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
e1b89c76f6
commit
e71c241bea
@@ -31,7 +31,7 @@
|
|||||||
int err; \
|
int err; \
|
||||||
av_strlcatf(opt_str, sizeof(opt_str), format, __VA_ARGS__); \
|
av_strlcatf(opt_str, sizeof(opt_str), format, __VA_ARGS__); \
|
||||||
err = cae->api->opt_set2(cae->param, name, opt_str); \
|
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);\
|
av_log(avctx, AV_LOG_WARNING, "Invalid value for %s: %s\n", name, opt_str);\
|
||||||
}\
|
}\
|
||||||
} while(0);
|
} while(0);
|
||||||
|
Reference in New Issue
Block a user