mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
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:
parent
647472b716
commit
72efd9a5ff
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ ErrorOr<u8> Parser::decode_term_subexp()
|
||||||
if (TRY(m_bit_stream->read_literal(1)) == 0)
|
if (TRY(m_bit_stream->read_literal(1)) == 0)
|
||||||
return TRY(m_bit_stream->read_literal(4)) + 16;
|
return TRY(m_bit_stream->read_literal(4)) + 16;
|
||||||
if (TRY(m_bit_stream->read_literal(1)) == 0)
|
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));
|
auto v = TRY(m_bit_stream->read_literal(7));
|
||||||
if (v < 65)
|
if (v < 65)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue