avfilter/af_flanger: free frame on ENOMEM
Signed-off-by: Kyle Swanson <k@ylo.ph> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
07d4fe3a87
commit
32403d1fab
@ -149,8 +149,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
out_frame = frame;
|
||||
} else {
|
||||
out_frame = ff_get_audio_buffer(inlink, frame->nb_samples);
|
||||
if (!out_frame)
|
||||
if (!out_frame) {
|
||||
av_frame_free(&frame);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
av_frame_copy_props(out_frame, frame);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user