libwebp: Display "libjpeg error:" in imageio/jpegdec

For clearer error message in cwebp.

BUG=webp:420

Change-Id: Ie60b53c4c6b77a96f81f3b5cd285b7c7003a1308
This commit is contained in:
Yannis Guyon 2019-03-08 15:19:51 +01:00
parent d9a662e1aa
commit 01ac46bae6

View File

@ -206,6 +206,7 @@ struct my_error_mgr {
static void my_error_exit(j_common_ptr dinfo) {
struct my_error_mgr* myerr = (struct my_error_mgr*)dinfo->err;
fprintf(stderr, "libjpeg error: ");
dinfo->err->output_message(dinfo);
longjmp(myerr->setjmp_buffer, 1);
}