diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 23:13:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 23:13:24 +0200 |
commit | 59361d8c9d319098e3c96db2ac600030467212be (patch) | |
tree | 9d16cd84b33fdff92e7ef6002fde96abada0f08b /libavfilter | |
parent | d5710411c74357efce09d1b09770990d2c13ef0c (diff) | |
download | ffmpeg-59361d8c9d319098e3c96db2ac600030467212be.tar.gz |
avfilter/af_sidechaincompress: Also assert that i < 2
This should help static analyzers (CID1322339)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_sidechaincompress.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |