Commit 71bceb06 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_abitscope: fix undefined behaviour

Fixes #8289
parent 4fe4772a
......@@ -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]++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment