Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-09-21 14:33:27 +0400
committerStefano Sabatini <stefasab@gmail.com>2012-09-21 14:43:52 +0400
commit31aa5b1a783ec91063eec370026a29c546d4ca6e (patch)
tree50b2914c31f012bd7a7cb33b717fc6dfc746c946 /libavfilter/vf_hue.c
parent0f40105aaa8295c47bd4b07fcca5b5b4f1d4ffb4 (diff)
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().
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c1
1 files changed, 1 insertions, 0 deletions
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;