mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +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:
parent
e43c21f4d7
commit
da00dadfe7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue