diff options
author | Oleg Sikorskiy <olegsik@gmail.com> | 2021-03-16 23:47:35 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-16 22:17:15 +0100 |
commit | 961137ea4c14747704c96715bb9f469d6f53bd8b (patch) | |
tree | 03673e676f906d39f540a246279b2f01a7f54342 | |
parent | 47645fc976f2020e3b2ddbda3d4b7c69e35cbcd8 (diff) | |
download | serenity-961137ea4c14747704c96715bb9f469d6f53bd8b.zip |
LibGfx: Don't truncate macroblock indices in JPG decoder.
-rw-r--r-- | Userland/Libraries/LibGfx/JPGLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/JPGLoader.cpp b/Userland/Libraries/LibGfx/JPGLoader.cpp index 2597c7cdf8..8a219ad395 100644 --- a/Userland/Libraries/LibGfx/JPGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPGLoader.cpp @@ -288,7 +288,7 @@ static Optional<u8> get_next_symbol(HuffmanStreamState& hstream, const HuffmanTa * macroblocks that share the chrominance data. Next two iterations (assuming that * we are dealing with three components) will fill up the blocks with chroma data. */ -static bool build_macroblocks(JPGLoadingContext& context, Vector<Macroblock>& macroblocks, u8 hcursor, u8 vcursor) +static bool build_macroblocks(JPGLoadingContext& context, Vector<Macroblock>& macroblocks, u32 hcursor, u32 vcursor) { for (auto it = context.components.begin(); it != context.components.end(); ++it) { ComponentSpec& component = it->value; |