mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avfilter/aeval: free input frame on error
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e312ed0504
commit
c02921417b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user