Commit 31aa5b1a authored by Stefano Sabatini's avatar Stefano Sabatini

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().
parent 0f40105a
...@@ -144,6 +144,7 @@ static inline int set_options(AVFilterContext *ctx, const char *args) ...@@ -144,6 +144,7 @@ static inline int set_options(AVFilterContext *ctx, const char *args)
hue->hue_expr = NULL; hue->hue_expr = NULL;
hue->hue_deg_expr = NULL; hue->hue_deg_expr = NULL;
hue->saturation_expr = NULL;
if ((ret = av_set_options_string(hue, args, "=", ":")) < 0) if ((ret = av_set_options_string(hue, args, "=", ":")) < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment