From 72efd9a5ff75b01b3c62461b9c46cfe4ce464ff1 Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Sun, 11 Sep 2022 16:19:02 -0500 Subject: [PATCH] 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. --- Userland/Libraries/LibVideo/VP9/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibVideo/VP9/Parser.cpp b/Userland/Libraries/LibVideo/VP9/Parser.cpp index 69e3df50f6..fcbf9e4d64 100644 --- a/Userland/Libraries/LibVideo/VP9/Parser.cpp +++ b/Userland/Libraries/LibVideo/VP9/Parser.cpp @@ -507,7 +507,7 @@ ErrorOr 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)