mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
libwebp: Display "libjpeg error:" in imageio/jpegdec
For clearer error message in cwebp. BUG=webp:420 Change-Id: Ie60b53c4c6b77a96f81f3b5cd285b7c7003a1308
This commit is contained in:
parent
d9a662e1aa
commit
01ac46bae6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user