summaryrefslogtreecommitdiffstats
path: root/libavfilter
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:12 +0200
commit3ba35a346cd2ee86fff83a0d0534e8a2265984fd (patch)
treed8b5e35546b7a92cf7590474c610a964a967ab57 /libavfilter
parent3fb29588a27a711132106b924e27b53789a58dcb (diff)
downloadffmpeg-streaming-3ba35a346cd2ee86fff83a0d0534e8a2265984fd.zip
ffmpeg-streaming-3ba35a346cd2ee86fff83a0d0534e8a2265984fd.tar.gz
vf_hqdn3d: make config_props work properly when called multiple times.
Do not leak all the temp buffers.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_hqdn3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
index 47abf1b..b9acf0b 100644
--- a/libavfilter/vf_hqdn3d.c
+++ b/libavfilter/vf_hqdn3d.c
@@ -252,6 +252,8 @@ static int config_input(AVFilterLink *inlink)
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
int i;
+ uninit(inlink->dst);
+
s->hsub = desc->log2_chroma_w;
s->vsub = desc->log2_chroma_h;
s->depth = desc->comp[0].depth_minus1+1;
OpenPOWER on IntegriCloud