Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. f (!(png_ptr->mode & PNG_HAVE_PLTE)) {
  2. /* Should be an error, but we can cope with it */
  3. png_warning(png_ptr, "Missing PLTE before tRNS");
  4. }
  5. else if (length > (png_uint_32)png_ptr->num_palette) {
  6. png_warning(png_ptr, "Incorrect tRNS chunk length");
  7. png_crc_finish(png_ptr, length);
  8. return;
  9. }
  10. ...
  11. png_crc_read(png_ptr, readbuf, (png_size_t)length);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement