mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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:
parent
d5710411c7
commit
59361d8c9d
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user