From 71bceb06e69c6d54f6c203137c3d7ae54832afe3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 16 Oct 2019 18:18:57 +0200 Subject: avfilter/avf_abitscope: fix undefined behaviour Fixes #8289 --- libavfilter/avf_abitscope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter') diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c index 6a38521..759f821 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]++; } } -- cgit v1.1