Should fix JPEG decoding tasks

This commit is contained in:
twinaphex 2016-05-17 10:07:40 +02:00
parent c62f8cc7f4
commit 64c176288b

View File

@ -2457,7 +2457,8 @@ int rjpeg_process_image(rjpeg_t *rjpeg, void **buf_data,
if (!rjpeg)
return IMAGE_PROCESS_ERROR;
rjpeg->output_image = (uint32_t*)rjpeg_load_from_memory(*buf, size, width, height, &comp, 4);
rjpeg->output_image = (uint32_t*)rjpeg_load_from_memory(rjpeg->buff_data, size, width, height, &comp, 4);
*buf_data = rjpeg->output_image;
return IMAGE_PROCESS_END;
}