mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +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
Notes:
sideshowbarker
2024-07-16 20:44:03 +09:00
Author: https://github.com/nico
Commit: da00dadfe7
Pull-request: https://github.com/SerenityOS/serenity/pull/19013
Reviewed-by: https://github.com/Zaggy1024 ✅
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());
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue