Skip to content

Fixed dither output buffer

Compare
Choose a tag to compare
@bitbank2 bitbank2 released this 01 Sep 12:46
· 68 commits to master since this release
0b850bc

This release fixes the memory management when using decodeDither(). The output pixels are now passed in the JPEGDRAW callback directly in the buffer given to JPEGDEC for processing the dithered pixels. Previously the regular pixel buffer was used and this caused a memory overflow for wide images. This change ensures that there will be enough memory for decoding and dithering any size image.