[FFmpeg-cvslog] vf_gradfun: make config_props work properly when called multiple times.
Anton Khirnov
git at videolan.org
Fri May 17 10:59:53 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 18 21:31:54 2013 +0100| [87c31cfd7a2cd7893c589b4f25d6d45b196e20c1] | committer: Anton Khirnov
vf_gradfun: make config_props work properly when called multiple times.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87c31cfd7a2cd7893c589b4f25d6d45b196e20c1
---
libavfilter/vf_gradfun.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 402e3b5..8ed706d 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -166,6 +166,7 @@ static int config_input(AVFilterLink *inlink)
int hsub = desc->log2_chroma_w;
int vsub = desc->log2_chroma_h;
+ av_freep(&s->buf);
s->buf = av_mallocz((FFALIGN(inlink->w, 16) * (s->radius + 1) / 2 + 32) * sizeof(uint16_t));
if (!s->buf)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list