summaryrefslogtreecommitdiff
path: root/libavfilter/vf_pixdesctest.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-18 21:31:54 +0100
committerAnton Khirnov <anton@khirnov.net>2013-05-17 07:44:23 +0200
commit16a645adeb758207346a4bbf66766f02734c461e (patch)
treea25762f375d725e65dc7ffdeea7c946b216ae65e /libavfilter/vf_pixdesctest.c
parent3ba35a346cd2ee86fff83a0d0534e8a2265984fd (diff)
vf_pixdesctest: make config_props work properly when called multiple times.
Diffstat (limited to 'libavfilter/vf_pixdesctest.c')
-rw-r--r--libavfilter/vf_pixdesctest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 5407ec6989..cbb869c566 100644
--- a/libavfilter/vf_pixdesctest.c
+++ b/libavfilter/vf_pixdesctest.c
@@ -46,6 +46,7 @@ static int config_props(AVFilterLink *inlink)
priv->pix_desc = av_pix_fmt_desc_get(inlink->format);
+ av_freep(&priv->line);
if (!(priv->line = av_malloc(sizeof(*priv->line) * inlink->w)))
return AVERROR(ENOMEM);