avfilter/avf_abitscope: fix undefined behaviour

Fixes #8289
pull/323/head
Paul B Mahol 5 years ago
parent 4fe4772a58
commit 71bceb06e6
  1. 2
      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]++;
}
}

Loading…
Cancel
Save