summaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_abitscope.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-16 18:18:57 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-16 18:28:32 +0200
commit71bceb06e69c6d54f6c203137c3d7ae54832afe3 (patch)
tree7c13740c477adf3c02260285ebd0319db556f2c4 /libavfilter/avf_abitscope.c
parent4fe4772a584a4b63c986ca18e0b25594b5061b66 (diff)
downloadffmpeg-streaming-71bceb06e69c6d54f6c203137c3d7ae54832afe3.zip
ffmpeg-streaming-71bceb06e69c6d54f6c203137c3d7ae54832afe3.tar.gz
avfilter/avf_abitscope: fix undefined behaviour
Fixes #8289
Diffstat (limited to 'libavfilter/avf_abitscope.c')
-rw-r--r--libavfilter/avf_abitscope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c
index 6a38521..759f821 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]++;
}
}
OpenPOWER on IntegriCloud