From 64c176288ba37259bd0ed0d3aaefe8e42c54519d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 17 May 2016 10:07:40 +0200 Subject: [PATCH] Should fix JPEG decoding tasks --- libretro-common/formats/jpeg/rjpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/formats/jpeg/rjpeg.c b/libretro-common/formats/jpeg/rjpeg.c index 6990f9b9ad..ed1959e091 100644 --- a/libretro-common/formats/jpeg/rjpeg.c +++ b/libretro-common/formats/jpeg/rjpeg.c @@ -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; }