[FFmpeg-cvslog] af_join: do not leak input frames.
Anton Khirnov
git at videolan.org
Sat Mar 16 17:03:52 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Mar 13 20:43:35 2013 +0100| [4750b05d67fd87263cb767b896e1cf55713a39de] | committer: Anton Khirnov
af_join: do not leak input frames.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4750b05d67fd87263cb767b896e1cf55713a39de
---
libavfilter/af_join.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c
index 14742de..172eda3 100644
--- a/libavfilter/af_join.c
+++ b/libavfilter/af_join.c
@@ -487,7 +487,8 @@ static int join_request_frame(AVFilterLink *outlink)
ret = ff_filter_frame(outlink, frame);
- memset(s->input_frames, 0, sizeof(*s->input_frames) * ctx->nb_inputs);
+ for (i = 0; i < ctx->nb_inputs; i++)
+ av_frame_free(&s->input_frames[i]);
return ret;
More information about the ffmpeg-cvslog
mailing list