OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1232a16
)
vf_lut: make config_props work properly when called multiple times.
author
Anton Khirnov
<anton@khirnov.net>
Mon, 18 Mar 2013 20:31:54 +0000
(21:31 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 17 May 2013 05:42:28 +0000
(07:42 +0200)
Do not leak the expressions.
libavfilter/vf_lut.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_lut.c
b/libavfilter/vf_lut.c
index
263bd53
..
348ef32
100644
(file)
--- 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) {