[FFmpeg-cvslog] vf_lut: make config_props work properly when called multiple times.
Anton Khirnov
git at videolan.org
Fri May 17 10:59:53 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 18 21:31:54 2013 +0100| [b06848f4deccb998f019eadc9a72e595bb5db4a9] | committer: Anton Khirnov
vf_lut: make config_props work properly when called multiple times.
Do not leak the expressions.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b06848f4deccb998f019eadc9a72e595bb5db4a9
---
libavfilter/vf_lut.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 263bd53..348ef32 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -245,6 +245,8 @@ static int config_props(AVFilterLink *inlink)
double res;
/* create the parsed expression */
+ av_expr_free(s->comp_expr[comp]);
+ s->comp_expr[comp] = NULL;
ret = av_expr_parse(&s->comp_expr[comp], s->comp_expr_str[comp],
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
if (ret < 0) {
More information about the ffmpeg-cvslog
mailing list