posts: fix calculation of animated PNG duration.

Fix certain animated PNGs returning NaN as the duration because the
frame rate was being reported as "0/0" by FFMpeg. This happens when the
animation has zero delay between frames. This is supposed to mean a PNG
with an infinitely fast frame rate, but in practice browsers limit it to
around 10FPS. The exact frame rate browsers will use is unknown and
implementation defined.
This commit is contained in:
evazion
2021-10-06 21:00:09 -05:00
parent f6a6289c8d
commit 2595f18b2f
4 changed files with 24 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB