mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
LibGfx: Don't truncate macroblock indices in JPG decoder.
This commit is contained in:
parent
47645fc976
commit
961137ea4c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue