[vlc-commits] packetizer: av1: fix bogus cast in leb128
Francois Cartegnie
git at videolan.org
Wed Oct 10 11:18:15 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 10 11:16:29 2018 +0200| [be45c6d961dfd135616594ddbb19a0bd64b42e43] | committer: Francois Cartegnie
packetizer: av1: fix bogus cast in leb128
refs #21275
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be45c6d961dfd135616594ddbb19a0bd64b42e43
---
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 249fa54183..7b22338eb8 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 |= (UINT64_C(p_buf[i] & 0x7F) << (i * 7));
+ i_val |= ((uint64_t)(p_buf[i] & 0x7F) << (i * 7));
if((p_buf[i] & 0x80) == 0)
{
*pi_len = i + 1;
More information about the vlc-commits
mailing list