vf_hqdn3d: make config_props work properly when called multiple times.
authorAnton Khirnov <anton@khirnov.net>
Mon, 18 Mar 2013 20:31:54 +0000 (21:31 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 17 May 2013 05:44:12 +0000 (07:44 +0200)
Do not leak all the temp buffers.

libavfilter/vf_hqdn3d.c

index 47abf1bb4acd9c5c5147217c934eb9f7d3e6dc67..b9acf0b9754ec3f603727d692fc6322f3b380283 100644 (file)
@@ -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;