diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-16 18:18:57 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-16 18:28:32 +0200 |
commit | 71bceb06e69c6d54f6c203137c3d7ae54832afe3 (patch) | |
tree | 7c13740c477adf3c02260285ebd0319db556f2c4 /libavfilter | |
parent | 4fe4772a584a4b63c986ca18e0b25594b5061b66 (diff) | |
download | ffmpeg-71bceb06e69c6d54f6c203137c3d7ae54832afe3.tar.gz |
avfilter/avf_abitscope: fix undefined behaviour
Fixes #8289
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_abitscope.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]++; } } |