aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/aeval.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-05-12 21:42:21 +0200
committerPaul B Mahol <onemda@gmail.com>2017-05-12 21:42:21 +0200
commitc02921417b24309559f4813f8ffee35d523e823e (patch)
tree7f85181e74e13854ca16e1154b0a8dd6689208b9 /libavfilter/aeval.c
parente312ed0504c1ba45e1e1f8e3071100b602a939c1 (diff)
downloadffmpeg-c02921417b24309559f4813f8ffee35d523e823e.tar.gz
avfilter/aeval: free input frame on error
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/aeval.c')
-rw-r--r--libavfilter/aeval.c4
1 files changed, 3 insertions, 1 deletions
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);