[FFmpeg-cvslog] lavfi/hue: fix crash when resetting the saturation expression

Stefano Sabatini git at videolan.org
Fri Sep 21 12:45:16 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Sep 21 12:33:27 2012 +0200| [31aa5b1a783ec91063eec370026a29c546d4ca6e] | committer: Stefano Sabatini

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().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31aa5b1a783ec91063eec370026a29c546d4ca6e
---

 libavfilter/vf_hue.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index 9674a20..cfd71b1 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;



More information about the ffmpeg-cvslog mailing list