[FFmpeg-devel] [PATCH 11/12] af_amix: Add missing error check

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Jul 6 21:28:41 EEST 2017


Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 libavfilter/af_amix.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index f19e6b39a5..809c8bf9ca 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);
-- 
2.11.0



More information about the ffmpeg-devel mailing list