Message ID | 1593041559-27350-1-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | 200c9b1c963c47e11f2dba37c90ef637412a3d00 |
Headers | show |
Series | [FFmpeg-devel,v3,1/6] avutil/opt: check return value of av_bprint_finalize() | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavutil/opt.c b/libavutil/opt.c index 2c3f998..c8413fa 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -2120,6 +2120,8 @@ int av_opt_serialize(void *obj, int opt_flags, int flags, char **buffer, av_freep(&buf); } } - av_bprint_finalize(&bprint, buffer); + ret = av_bprint_finalize(&bprint, buffer); + if (ret < 0) + return ret; return 0; }