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:
BIN
test/files/test-animated-inf-fps.png
Normal file
BIN
test/files/test-animated-inf-fps.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 212 KiB |
Reference in New Issue
Block a user