Allow more than one scanline at a time

This commit is contained in:
Surma
2020-08-24 14:03:44 +01:00
parent 75275a5596
commit ee561bb00e
2 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ val decode(std::string image_in) {
// Process data
while (cinfo.output_scanline < cinfo.output_height) {
uint8_t* ptr = &output_buffer[stride * cinfo.output_scanline];
jpeg_read_scanlines(&cinfo, &ptr, 1);
jpeg_read_scanlines(&cinfo, &ptr, cinfo.output_height);
}
jpeg_finish_decompress(&cinfo);

Binary file not shown.