提交 200c9b1c 编写于 作者: L Limin Wang

avutil/opt: check return value of av_bprint_finalize()

Reviewed-by: NNicolas George <george@nsup.org>
Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
上级 af575194
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册