diff options
author | Kyle Swanson <k@ylo.ph> | 2015-10-15 10:08:36 -0500 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-18 21:27:00 +0200 |
commit | 32403d1fabb602d71358fcb186fbbc6896db86a4 (patch) | |
tree | a5104d262c4c1a706e0bebd1df65492cae53fb72 /libavfilter | |
parent | 07d4fe3a871f3ea2f3e475bc84c3e85102ec75ba (diff) | |
download | ffmpeg-32403d1fabb602d71358fcb186fbbc6896db86a4.tar.gz |
avfilter/af_flanger: free frame on ENOMEM
Signed-off-by: Kyle Swanson <k@ylo.ph>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_flanger.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/af_flanger.c b/libavfilter/af_flanger.c index 39d4e7b4b7..f8ec8303d1 100644 --- a/libavfilter/af_flanger.c +++ b/libavfilter/af_flanger.c @@ -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); } |