1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/avf_abitscope: fix undefined behaviour

Fixes #8289
This commit is contained in:
Paul B Mahol 2019-10-16 18:18:57 +02:00
parent 4fe4772a58
commit 71bceb06e6

View File

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