summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp
index 2d4fa7e71d..facc4c6091 100644
--- a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp
+++ b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp
@@ -17,8 +17,8 @@ ErrorOr<BooleanDecoder> BooleanDecoder::initialize(MaybeOwned<BigEndianInputBitS
VERIFY(bit_stream->is_aligned_to_byte_boundary());
auto value = TRY(bit_stream->read_value<u8>());
u8 range = 255;
- u64 max_bits = (8 * bytes) - 8;
- BooleanDecoder decoder { move(bit_stream), value, range, max_bits };
+ u64 bits_left = (8 * size_in_bytes) - 8;
+ BooleanDecoder decoder { move(bit_stream), value, range, bits_left };
if (TRY(decoder.read_bool(128)))
return Error::from_string_literal("Range decoder marker was non-zero");
return decoder;