Skip to content

Commit

Permalink
APNG: Remove number-of-
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Oct 11, 2023
1 parent 9428115 commit ec213f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FORMATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<br/><br/>
<b>Content:</b> Static, Animated, Meta data, ICC profiles.
<br/><br/>
<b>Special properties:</b> Key: <i>"apng-number-of-frames"</i>. Description: Number of frames in the animation.
<b>Special properties:</b> Key: <i>"apng-frames"</i>. Description: Number of frames in the animation.
Possible values: unsigned int.
Key: <i>"apng-number-of-plays"</i>. Description: Number of plays of the animation.
Key: <i>"apng-plays"</i>. Description: Number of plays of the animation.
Possible values: unsigned int.
</td>
<td>Blend operations with pixel formats other than BPP16-GRAYSCALE-ALPHA, BPP32-GRAYSCALE-ALPHA, BPP32-RGBA, BPP64-RGBA.</td>
Expand Down
4 changes: 2 additions & 2 deletions src/sail-codecs/png/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,11 @@ sail_status_t png_private_store_num_frames_and_plays(png_structp png_ptr, png_in

SAIL_LOG_TRACE("PNG: Number of frames: %u", num_frames);
sail_set_variant_unsigned_int(variant, num_frames);
sail_put_hash_map(special_properties, "apng-number-of-frames", variant);
sail_put_hash_map(special_properties, "apng-frames", variant);

SAIL_LOG_TRACE("PNG: Number of plays: %u", num_plays);
sail_set_variant_unsigned_int(variant, num_plays);
sail_put_hash_map(special_properties, "apng-number-of-plays", variant);
sail_put_hash_map(special_properties, "apng-plays", variant);

sail_destroy_variant(variant);

Expand Down

0 comments on commit ec213f5

Please sign in to comment.