You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_lut: make config_props work properly when called multiple times.
Do not leak the expressions.
This commit is contained in:
@@ -245,6 +245,8 @@ static int config_props(AVFilterLink *inlink)
|
|||||||
double res;
|
double res;
|
||||||
|
|
||||||
/* create the parsed expression */
|
/* 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],
|
ret = av_expr_parse(&s->comp_expr[comp], s->comp_expr_str[comp],
|
||||||
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
|
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
Reference in New Issue
Block a user