LibVideo: Change decode_term_subexp read to the correct number of bits

This allows parsing of the implemented functions from the VP9 spec in
the test video included in /home/anon/Videos.
This commit is contained in:
Zaggy1024 2022-09-11 16:19:02 -05:00 committed by Andrew Kaster
parent 647472b716
commit 72efd9a5ff
Notes: sideshowbarker 2024-07-17 06:08:17 +09:00

View file

@ -507,7 +507,7 @@ ErrorOr<u8> Parser::decode_term_subexp()
if (TRY(m_bit_stream->read_literal(1)) == 0)
return TRY(m_bit_stream->read_literal(4)) + 16;
if (TRY(m_bit_stream->read_literal(1)) == 0)
return TRY(m_bit_stream->read_literal(4)) + 32;
return TRY(m_bit_stream->read_literal(5)) + 32;
auto v = TRY(m_bit_stream->read_literal(7));
if (v < 65)