diff --git a/src/libImaging/JpegEncode.c b/src/libImaging/JpegEncode.c index 5f3b29c66..8882b61be 100644 --- a/src/libImaging/JpegEncode.c +++ b/src/libImaging/JpegEncode.c @@ -277,8 +277,9 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes) } else { break; } - } else + } else { state->state++; + } case 4: if (1024 > context->destination.pub.free_in_buffer){