diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-09-21 12:33:27 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-09-21 12:43:52 +0200 |
commit | 31aa5b1a783ec91063eec370026a29c546d4ca6e (patch) | |
tree | 50b2914c31f012bd7a7cb33b717fc6dfc746c946 | |
parent | 0f40105aaa8295c47bd4b07fcca5b5b4f1d4ffb4 (diff) | |
download | ffmpeg-31aa5b1a783ec91063eec370026a29c546d4ca6e.tar.gz |
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().
-rw-r--r-- | libavfilter/vf_hue.c | 1 |
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; |