[FFmpeg-cvslog] avfilter/af_sidechaincompress: Also assert that i < 2
Michael Niedermayer
git at videolan.org
Thu Sep 3 23:56:10 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 3 23:13:24 2015 +0200| [59361d8c9d319098e3c96db2ac600030467212be] | committer: Michael Niedermayer
avfilter/af_sidechaincompress: Also assert that i < 2
This should help static analyzers (CID1322339)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59361d8c9d319098e3c96db2ac600030467212be
---
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 f555563..afae9be 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])
More information about the ffmpeg-cvslog
mailing list