lavfi/hue: fix crash when resetting the saturation expression

Previously when saturation was reinited, the old value was freed when
setting options, and freed again in PARSE_EXPRESSION().
release/1.0
Stefano Sabatini 13 years ago
parent 0f40105aaa
commit 31aa5b1a78
  1. 1
      libavfilter/vf_hue.c

@ -144,6 +144,7 @@ static inline int set_options(AVFilterContext *ctx, const char *args)
hue->hue_expr = NULL;
hue->hue_deg_expr = NULL;
hue->saturation_expr = NULL;
if ((ret = av_set_options_string(hue, args, "=", ":")) < 0)
return ret;

Loading…
Cancel
Save