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().
This commit is contained in:
Stefano Sabatini 2012-09-21 12:33:27 +02:00
parent 0f40105aaa
commit 31aa5b1a78

View File

@ -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;