[FFmpeg-cvslog] lavc/libxavs2: fix parameter setting result determination

hwren git at videolan.org
Tue Oct 15 18:11:21 EEST 2019


ffmpeg | branch: master | hwren <hwrenx at 126.com> | Mon Oct 14 21:22:42 2019 +0800| [e71c241beaaa8f52cf99938c6de2f09fef9aef22] | committer: Michael Niedermayer

lavc/libxavs2: fix parameter setting result determination

Signed-off-by: hwren <hwrenx at 126.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e71c241beaaa8f52cf99938c6de2f09fef9aef22
---

 libavcodec/libxavs2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c
index d5c455797d..0179a1eb15 100644
--- a/libavcodec/libxavs2.c
+++ b/libavcodec/libxavs2.c
@@ -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);



More information about the ffmpeg-cvslog mailing list