[FFmpeg-cvslog] avfilter/af_acrossover: free all output frames on error
Paul B Mahol
git at videolan.org
Fri Feb 7 13:13:49 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 7 12:09:24 2020 +0100| [7e8721e98e911a92df6047ae3962bdaa96f601bb] | committer: Paul B Mahol
avfilter/af_acrossover: free all output frames on error
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e8721e98e911a92df6047ae3962bdaa96f601bb
---
libavfilter/af_acrossover.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c
index 370922d8c9..20d1d2bda9 100644
--- a/libavfilter/af_acrossover.c
+++ b/libavfilter/af_acrossover.c
@@ -303,6 +303,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
fail:
+ for (i = 0; i < ctx->nb_outputs; i++)
+ av_frame_free(&frames[i]);
av_frame_free(&in);
s->input_frame = NULL;
More information about the ffmpeg-cvslog
mailing list