Commit c0292141 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/aeval: free input frame on error

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent e312ed05
......@@ -429,8 +429,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
/* do volume scaling in-place if input buffer is writable */
out = ff_get_audio_buffer(outlink, nb_samples);
if (!out)
if (!out) {
av_frame_free(&in);
return AVERROR(ENOMEM);
}
av_frame_copy_props(out, in);
t0 = TS2T(in->pts, inlink->time_base);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment