Output error message when dealing with jpeg errors

This commit is contained in:
Ilya Fedin 2023-01-09 06:22:42 +04:00 committed by John Preston
parent 3cb645f507
commit b67cff089c

View file

@ -32,6 +32,7 @@ struct my_error_mgr : public jpeg_error_mgr {
extern "C" {
static void my_error_exit(j_common_ptr cinfo) {
(*cinfo->err->output_message)(cinfo);
my_error_mgr* myerr = (my_error_mgr*)cinfo->err;
longjmp(myerr->setjmp_buffer, 1);
}