API gifski_add_frame_rgba(*** double presentation_timestamp) cannot handle last frame with arbitrary duration
I am using gifski as c library to assemble GIF file from frames. Some of the emoj files are using different frame durations for each frame. I can achieve this by correctly calculating the PTS for each frame. But the impl cannot handle the case if the last frame want to use a different duration. I saw in the generated GIF, the duration of last frame is PTS[n] - PTS[n-1] Seems to be a limitation of this API. Any idea to fix this? Thanks.
I recommend adding a duplicate frame at the end. gifski will recognize the pixels are the same.
Yes I thought the same way. Just came to see if you have better recommendation. So, based on the test result, the workaround is to call gifski_add_frame_rgba() twice, with PTS increased by half of the frame duration each time. Thanks a lot for your work on the great GifSki library.