From 59361d8c9d319098e3c96db2ac600030467212be Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Sep 2015 23:13:24 +0200 Subject: [PATCH] avfilter/af_sidechaincompress: Also assert that i < 2 This should help static analyzers (CID1322339) Signed-off-by: Michael Niedermayer --- libavfilter/af_sidechaincompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c index f555563430..afae9bef17 100644 --- a/libavfilter/af_sidechaincompress.c +++ b/libavfilter/af_sidechaincompress.c @@ -161,7 +161,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) for (i = 0; i < 2; i++) if (link == ctx->inputs[i]) break; - av_assert0(!s->input_frame[i]); + av_assert0(i < 2 && !s->input_frame[i]); s->input_frame[i] = frame; if (!s->input_frame[0] || !s->input_frame[1])