16 bits per iteration

This commit is contained in:
Eric Soroos 2025-05-02 12:56:11 +02:00 committed by Andrew Murray
parent 1c5116d43f
commit 8cd86b6362

View File

@ -258,7 +258,8 @@ ImagingBcnEncode(Imaging im, ImagingCodecState state, UINT8 *buf, int bytes) {
UINT8 *dst = buf;
for (;;) {
if (dst + 8 >= bytes + buf) {
// Loop writes a max of 16 bytes per iteration
if (dst + 16 >= bytes + buf) {
break;
}
if (n == 5) {