Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-07 14:09:24 +0300
committerPaul B Mahol <onemda@gmail.com>2020-02-07 14:13:06 +0300
commit7e8721e98e911a92df6047ae3962bdaa96f601bb (patch)
treec456a9d982ee4a2f7241f93cb67bf52bd060e4e0 /libavfilter/af_acrossover.c
parentcd671ea08351d936eaaf0aa4755ec3df6009d002 (diff)
avfilter/af_acrossover: free all output frames on error
Diffstat (limited to 'libavfilter/af_acrossover.c')
-rw-r--r--libavfilter/af_acrossover.c2
1 files changed, 2 insertions, 0 deletions
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;