[vlc-commits] packetizer: av1: clear undefined shift

Francois Cartegnie git at videolan.org
Tue Oct 2 19:00:05 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct  2 18:58:05 2018 +0200| [b3f7b29b0320f1e953da2b66be69033754633024] | committer: Francois Cartegnie

packetizer: av1: clear undefined shift

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b3f7b29b0320f1e953da2b66be69033754633024
---

 modules/packetizer/av1_obu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/av1_obu.h b/modules/packetizer/av1_obu.h
index f9fe1f5c2f..36b2510965 100644
--- a/modules/packetizer/av1_obu.h
+++ b/modules/packetizer/av1_obu.h
@@ -28,7 +28,7 @@ static inline uint64_t leb128(const uint8_t *p_buf, size_t i_buf, uint8_t *pi_le
     {
         if(i >= i_buf)
             break;
-        i_val |= ((p_buf[i] & 0x7F) << (i * 7));
+        i_val |= (UINT64_C(p_buf[i] & 0x7F) << (i * 7));
         if((p_buf[i] & 0x80) == 0)
         {
             *pi_len = i + 1;



More information about the vlc-commits mailing list