aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_acopy.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-01 14:55:43 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-01 14:55:43 +0200
commit94b155e49bdefcfe3117759e55bb1d40e655eb9e (patch)
tree4d849c1e5e8dcbc4c65478998b3f3494f836417f /libavfilter/af_acopy.c
parent9cee8975c3fe49c22ce450863d195a462e2be06a (diff)
downloadffmpeg-94b155e49bdefcfe3117759e55bb1d40e655eb9e.tar.gz
avfilter/copy: add forgotten check
Diffstat (limited to 'libavfilter/af_acopy.c')
-rw-r--r--libavfilter/af_acopy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/af_acopy.c b/libavfilter/af_acopy.c
index a7caec6ae9..2d915019db 100644
--- a/libavfilter/af_acopy.c
+++ b/libavfilter/af_acopy.c
@@ -26,8 +26,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples);
int ret;
- if (!out)
+ if (!out) {
ret = AVERROR(ENOMEM);
+ goto fail;
+ }
ret = av_frame_copy_props(out, in);
if (ret < 0)