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:
parent
1685d6821f
commit
f6994b6a64
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user