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]++; } }