Skip to content

pasjpeg > gray_rgb_convert()

https://gitlab.com/freepascal.org/fpc/source/-/blob/main/packages/pasjpeg/src/jdcolor.pas#L293

Bug: This line (293) is wrong:
outptr := JSAMPLE_PTR(@output_buf^[0]);
Now we have (outptr^ = rowpointer),
but we want (outptr = rowpointer).

Solution: Remove the @-operator, so we get:
outptr := JSAMPLE_PTR(output_buf^[0]);

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information