提交 b06848f4 编写于 作者: A Anton Khirnov

vf_lut: make config_props work properly when called multiple times.

Do not leak the expressions.
上级 1232a164
......@@ -245,6 +245,8 @@ static int config_props(AVFilterLink *inlink)
double res;
/* create the parsed expression */
av_expr_free(s->comp_expr[comp]);
s->comp_expr[comp] = NULL;
ret = av_expr_parse(&s->comp_expr[comp], s->comp_expr_str[comp],
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册