From e43c21f4d7fb33652cf0c71c5cff64a570f9cd70 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 24 May 2023 05:16:01 -0400 Subject: [PATCH] LibVideo: Rename BooleanDecoder::initialize param ...from "bytes" to "size_in_bytes". I thought at first that `bytes` meant the variable contained bytes that the decoder would read from. Also, this variable is called `sz` (for `size`) in the spec. No behavior change. --- Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp | 2 +- Userland/Libraries/LibVideo/VP9/BooleanDecoder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp index 6a3e40d536..2d4fa7e71d 100644 --- a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp +++ b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.cpp @@ -12,7 +12,7 @@ namespace Video::VP9 { /* 9.2.1 */ -ErrorOr BooleanDecoder::initialize(MaybeOwned bit_stream, size_t bytes) +ErrorOr BooleanDecoder::initialize(MaybeOwned bit_stream, size_t size_in_bytes) { VERIFY(bit_stream->is_aligned_to_byte_boundary()); auto value = TRY(bit_stream->read_value()); diff --git a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h index 46ebf6db1f..5a72f76d70 100644 --- a/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h +++ b/Userland/Libraries/LibVideo/VP9/BooleanDecoder.h @@ -17,7 +17,7 @@ namespace Video::VP9 { class BooleanDecoder { public: /* (9.2) */ - static ErrorOr initialize(MaybeOwned bit_stream, size_t bytes); + static ErrorOr initialize(MaybeOwned bit_stream, size_t size_in_bytes); ErrorOr read_bool(u8 probability); ErrorOr read_literal(u8 bits); ErrorOr finish_decode();