diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-05-12 22:42:21 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-05-12 22:42:21 +0300 |
commit | c02921417b24309559f4813f8ffee35d523e823e (patch) | |
tree | 7f85181e74e13854ca16e1154b0a8dd6689208b9 /libavfilter | |
parent | e312ed0504c1ba45e1e1f8e3071100b602a939c1 (diff) |
avfilter/aeval: free input frame on error
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/aeval.c | 4 |
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); |