mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-03 23:46:49 +02: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) {
|
static void my_error_exit(j_common_ptr dinfo) {
|
||||||
struct my_error_mgr* myerr = (struct my_error_mgr*)dinfo->err;
|
struct my_error_mgr* myerr = (struct my_error_mgr*)dinfo->err;
|
||||||
|
fprintf(stderr, "libjpeg error: ");
|
||||||
dinfo->err->output_message(dinfo);
|
dinfo->err->output_message(dinfo);
|
||||||
longjmp(myerr->setjmp_buffer, 1);
|
longjmp(myerr->setjmp_buffer, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user