Commit 14358466 authored by Ken Raeburn's avatar Ken Raeburn
Browse files

fix jpeg error-handling setup

parent 140c4ac6
No preview for this file type
......@@ -8211,8 +8211,8 @@ jpeg_load (f, img)
/* Customize libjpeg's error handling to call my_error_exit when an
error is detected. This function will perform a longjmp. */
mgr.pub.error_exit = my_error_exit;
cinfo.err = jpeg_std_error (&mgr.pub);
mgr.pub.error_exit = my_error_exit;
if ((rc = setjmp (mgr.setjmp_buffer)) != 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment