diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-02-19 20:22:45 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-22 09:22:45 +0100 |
commit | 90573652fdcd2743237f2ad11f151404dcf1f3eb (patch) | |
tree | 04978af329ba02975c701689295d6dccdd88e7f7 /Userland/Libraries/LibGfx | |
parent | 9096b4d8938b53431053cad801db8a12f9d7cb90 (diff) | |
download | serenity-90573652fdcd2743237f2ad11f151404dcf1f3eb.zip |
LibGfx: Rename "skip_marker_with_length" to "skip_segment"
As it, in fact, does not skip a marker but a segment :^).
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/JPEGLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/JPEGLoader.cpp b/Userland/Libraries/LibGfx/JPEGLoader.cpp index 6905223167..5c3e5282cd 100644 --- a/Userland/Libraries/LibGfx/JPEGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPEGLoader.cpp @@ -851,7 +851,7 @@ static ErrorOr<void> read_quantization_table(AK::SeekableStream& stream, JPEGLoa return {}; } -static ErrorOr<void> skip_marker_with_length(Stream& stream) +static ErrorOr<void> skip_segment(Stream& stream) { u16 bytes_to_skip = TRY(stream.read_value<BigEndian<u16>>()) - 2; TRY(stream.discard(bytes_to_skip)); @@ -1161,7 +1161,7 @@ static ErrorOr<void> parse_header(AK::SeekableStream& stream, JPEGLoadingContext case JPEG_SOS: return read_start_of_scan(stream, context); default: - if (auto result = skip_marker_with_length(stream); result.is_error()) { + if (auto result = skip_segment(stream); result.is_error()) { dbgln_if(JPEG_DEBUG, "{}: Error skipping marker: {:x}!", TRY(stream.tell()), marker); return result.release_error(); } |