[FFmpeg-devel] [PATCH 03/12] af_tempo: Add missing error check

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


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

diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c
index 76410221d6..944df1dd32 100644
--- a/libavfilter/af_atempo.c
+++ b/libavfilter/af_atempo.c
@@ -1148,6 +1148,8 @@ static int request_frame(AVFilterLink *outlink)
 
             if (n_out) {
                 ret = push_samples(atempo, outlink, n_out);
+                if (ret < 0)
+                    return ret;
             }
         }
 
-- 
2.11.0



More information about the ffmpeg-devel mailing list