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:
parent
0f40105aaa
commit
31aa5b1a78
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user