avfilter/af_sidechaincompress: Also assert that i < 2

This should help static analyzers (CID1322339)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-09-03 23:13:24 +02:00
parent d5710411c7
commit 59361d8c9d

View File

@ -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])