Lines 285-291
Link Here
|
285 |
endinfo = png_create_info_struct(png); |
285 |
endinfo = png_create_info_struct(png); |
286 |
|
286 |
|
287 |
// DH: added following lines |
287 |
// DH: added following lines |
288 |
if (setjmp(png->jmpbuf)) |
288 |
if (setjmp(png_jmpbuf(png))) |
289 |
{ |
289 |
{ |
290 |
png_destroy_read_struct(&png, &info, &endinfo); |
290 |
png_destroy_read_struct(&png, &info, &endinfo); |
291 |
return 0; |
291 |
return 0; |
Lines 390-396
Link Here
|
390 |
endinfo = png_create_info_struct(png); |
390 |
endinfo = png_create_info_struct(png); |
391 |
|
391 |
|
392 |
// DH: added following lines |
392 |
// DH: added following lines |
393 |
if (setjmp(png->jmpbuf)) |
393 |
if (setjmp(png_jmpbuf(png))) |
394 |
{ |
394 |
{ |
395 |
png_destroy_read_struct(&png, &info, &endinfo); |
395 |
png_destroy_read_struct(&png, &info, &endinfo); |
396 |
return 0; |
396 |
return 0; |
Lines 569-575
Link Here
|
569 |
#define ALPHA *q |
569 |
#define ALPHA *q |
570 |
|
570 |
|
571 |
switch (trans) { |
571 |
switch (trans) { |
572 |
case PNG_CALLBACK: |
572 |
case PNG_CALLBACKT: |
573 |
FORSTART |
573 |
FORSTART |
574 |
ALPHA = AlphaCallback((unsigned char) r, (unsigned char) g, (unsigned char) b); |
574 |
ALPHA = AlphaCallback((unsigned char) r, (unsigned char) g, (unsigned char) b); |
575 |
FOREND |
575 |
FOREND |