Browse Source

vf_lut: make config_props work properly when called multiple times.

Do not leak the expressions.
tags/n2.0
Anton Khirnov 13 years ago
parent
commit
b06848f4de
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/vf_lut.c

+ 2
- 0
libavfilter/vf_lut.c View File

@@ -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) {


Loading…
Cancel
Save