summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_amix.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-06 14:08:40 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-07 15:32:03 -0400
commitb198e0913854ddeefb4335a2a12c422cfc5aaf12 (patch)
tree0d03f71eff3d421bfe77280428e6e06bdc46ca3a /libavfilter/af_amix.c
parentc27d7c027cd7defd44bf11ba9c0526279a3773c3 (diff)
downloadffmpeg-streaming-b198e0913854ddeefb4335a2a12c422cfc5aaf12.zip
ffmpeg-streaming-b198e0913854ddeefb4335a2a12c422cfc5aaf12.tar.gz
af_amix: Add missing error check
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavfilter/af_amix.c')
-rw-r--r--libavfilter/af_amix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index f19e6b3..809c8bf 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -468,6 +468,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
ret = av_audio_fifo_write(s->fifos[i], (void **)buf->extended_data,
buf->nb_samples);
+ if (ret < 0)
+ goto fail;
av_frame_free(&buf);
return output_frame(outlink, 0);
OpenPOWER on IntegriCloud