Skip to content

Commit

Permalink
PNG: Fix reading APNG images with hidden frame
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Nov 9, 2023
1 parent 8182ea5 commit 431bfcd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sail-codecs/png/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ SAIL_EXPORT sail_status_t sail_codec_load_seek_next_frame_v8_png(void *state, st

/* We have just a single frame left - continue to reading scan lines. */
if (png_state->frames == 1) {
png_read_frame_head(png_state->png_ptr, png_state->info_ptr);
png_state->next_frame_width = png_state->first_image->width;
png_state->next_frame_height = png_state->first_image->height;
} else if (png_state->frames == 0) {
Expand Down

0 comments on commit 431bfcd

Please sign in to comment.