vlc/vlc-3.0 | branch: master | Francois Cartegnie <[email protected]> | Wed Oct 10 11:16:29 2018 +0200| [3f38d85d56ed39427e67fed649432500d51bcb8b] | committer: Tristan Matthews
packetizer: av1: fix bogus cast in leb128 refs #21275 (cherry picked from commit be45c6d961dfd135616594ddbb19a0bd64b42e43) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3f38d85d56ed39427e67fed649432500d51bcb8b --- 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
