mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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_deg_expr = NULL;
|
||||
hue->saturation_expr = NULL;
|
||||
|
||||
if ((ret = av_set_options_string(hue, args, "=", ":")) < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user