1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00

demux: av1_unpack: fix leb128 width estimation

This commit is contained in:
Francois Cartegnie 2018-10-11 22:37:44 +02:00
parent 1685d6821f
commit f6994b6a64

View File

@ -26,10 +26,10 @@
static inline uint8_t leb128_expected(uint32_t v)
{
if (v < (1U << 8)) return 1;
else if(v < (1U << 15)) return 2;
else if(v < (1U << 22)) return 3;
else if(v < (1U << 29)) return 4;
if (v < (1U << 7)) return 1;
else if(v < (1U << 14)) return 2;
else if(v < (1U << 21)) return 3;
else if(v < (1U << 28)) return 4;
else return 5;
}