[FFmpeg-cvslog] avfilter/aeval: free input frame on error
Paul B Mahol
git at videolan.org
Fri May 12 22:49:09 EEST 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri May 12 21:42:21 2017 +0200| [c02921417b24309559f4813f8ffee35d523e823e] | committer: Paul B Mahol
avfilter/aeval: free input frame on error
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c02921417b24309559f4813f8ffee35d523e823e
---
libavfilter/aeval.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c
index 42970f42e7..9800a60d50 100644
--- a/libavfilter/aeval.c
+++ b/libavfilter/aeval.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list