Commit 59361d8c authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_sidechaincompress: Also assert that i < 2

This should help static analyzers (CID1322339)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d5710411
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment