[FFmpeg-cvslog] vf_pixdesctest: make config_props work properly when called multiple times.

Anton Khirnov git at videolan.org
Fri May 17 11:47:27 CEST 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 18 21:31:54 2013 +0100| [16a645adeb758207346a4bbf66766f02734c461e] | committer: Anton Khirnov

vf_pixdesctest: make config_props work properly when called multiple times.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16a645adeb758207346a4bbf66766f02734c461e
---

 libavfilter/vf_pixdesctest.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_pixdesctest.c b/libavfilter/vf_pixdesctest.c
index 5407ec6..cbb869c 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);
 



More information about the ffmpeg-cvslog mailing list