1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

LibVideo: Rename local variable from "max_bits" to "bits_left"

That's how the member variable it gets copied into is called.

No behavior change.
This commit is contained in:
Nico Weber 2023-05-24 05:17:58 -04:00 committed by Tim Flynn
parent e43c21f4d7
commit da00dadfe7

View file

@ -17,8 +17,8 @@ ErrorOr<BooleanDecoder> BooleanDecoder::initialize(MaybeOwned<BigEndianInputBitS
VERIFY(bit_stream->is_aligned_to_byte_boundary()); VERIFY(bit_stream->is_aligned_to_byte_boundary());
auto value = TRY(bit_stream->read_value<u8>()); auto value = TRY(bit_stream->read_value<u8>());
u8 range = 255; u8 range = 255;
u64 max_bits = (8 * bytes) - 8; u64 bits_left = (8 * size_in_bytes) - 8;
BooleanDecoder decoder { move(bit_stream), value, range, max_bits }; BooleanDecoder decoder { move(bit_stream), value, range, bits_left };
if (TRY(decoder.read_bool(128))) if (TRY(decoder.read_bool(128)))
return Error::from_string_literal("Range decoder marker was non-zero"); return Error::from_string_literal("Range decoder marker was non-zero");
return decoder; return decoder;