[FFmpeg-cvslog] avfilter/avf_abitscope: fix undefined behaviour
Paul B Mahol
git at videolan.org
Wed Oct 16 19:29:04 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 16 18:18:57 2019 +0200| [71bceb06e69c6d54f6c203137c3d7ae54832afe3] | committer: Paul B Mahol
avfilter/avf_abitscope: fix undefined behaviour
Fixes #8289
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71bceb06e69c6d54f6c203137c3d7ae54832afe3
---
libavfilter/avf_abitscope.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c
index 6a38521b6c..759f821e74 100644
--- a/libavfilter/avf_abitscope.c
+++ b/libavfilter/avf_abitscope.c
@@ -142,7 +142,7 @@ static void count_bits(AudioBitScopeContext *s, uint32_t sample, int max)
int i;
for (i = 0; i < max; i++) {
- if (sample & (1 << i))
+ if (sample & (1U << i))
s->counter[i]++;
}
}
More information about the ffmpeg-cvslog
mailing list