LibGfx: Don't truncate macroblock indices in JPG decoder.

This commit is contained in:
Oleg Sikorskiy 2021-03-16 23:47:35 +03:00 committed by Andreas Kling
parent 47645fc976
commit 961137ea4c

View file

@ -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;