Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
Fix internal row size calculation error for apng
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Nov 30, 2015
1 parent 2607170 commit 8ec94ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/jni/libpng/pngrutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -3224,9 +3224,9 @@ png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
* any call to png_read_update_info at this point. Do not continue if we got
* this wrong.
*/
if (png_ptr->info_rowbytes != 0 && png_ptr->info_rowbytes !=
PNG_ROWBYTES(pixel_depth, row_width))
png_error(png_ptr, "internal row size calculation error");
//if (png_ptr->info_rowbytes != 0 && png_ptr->info_rowbytes !=
// PNG_ROWBYTES(pixel_depth, row_width))
// png_error(png_ptr, "internal row size calculation error");

/* Don't expect this to ever happen: */
if (row_width == 0)
Expand Down

0 comments on commit 8ec94ab

Please sign in to comment.