avfilter/af_acrossover: free all output frames on error

This commit is contained in:
Paul B Mahol 2020-02-07 12:09:24 +01:00
parent cd671ea083
commit 7e8721e98e
1 changed files with 2 additions and 0 deletions

View File

@ -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;