ffmpeg | branch: master | Paul B Mahol <[email protected]> | Wed Oct 16 18:18:57 
2019 +0200| [71bceb06e69c6d54f6c203137c3d7ae54832afe3] | committer: Paul B Mahol

avfilter/avf_abitscope: fix undefined behaviour

Fixes #8289

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71bceb06e69c6d54f6c203137c3d7ae54832afe3
---

 libavfilter/avf_abitscope.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to