From 31aa5b1a783ec91063eec370026a29c546d4ca6e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 21 Sep 2012 12:33:27 +0200 Subject: [PATCH] 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(). --- libavfilter/vf_hue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 9674a20f67..cfd71b1f89 100644 --- a/libavfilter/vf_hue.c +++ b/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;