[FFmpeg-cvslog] avfilter/af_flanger: free frame on ENOMEM
Kyle Swanson
git at videolan.org
Sun Oct 18 21:59:28 CEST 2015
ffmpeg | branch: master | Kyle Swanson <k at ylo.ph> | Thu Oct 15 10:08:36 2015 -0500| [32403d1fabb602d71358fcb186fbbc6896db86a4] | committer: Michael Niedermayer
avfilter/af_flanger: free frame on ENOMEM
Signed-off-by: Kyle Swanson <k at ylo.ph>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=32403d1fabb602d71358fcb186fbbc6896db86a4
---
libavfilter/af_flanger.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/af_flanger.c b/libavfilter/af_flanger.c
index 39d4e7b..f8ec830 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);
}
More information about the ffmpeg-cvslog
mailing list