Closed kornelski closed 2 years ago
When using trimming the last frame has incorrect timestamp.
I may be misunderstanding this, but your fix ensures that a frame is not before the first time code. Did you mean to say "first frame", not "last"?
How do I reproduce this? Do I trim from the start or end?
I can reproduce it every time by using the trim feature - just trim any fragment of a video. The last frame that is being decoded and fed to gifski has timestamp that is before the first frame. There's some wraparound or buggy timestamping happening.
Try changing this to an assert
and see when it fails — that's how I discovered it, because it makes assertions fail inside gif.ski.
There's some wraparound or buggy timestamping happening.
Very strange. I'll look into the core issue more when I have some time.
When using trimming the last frame has incorrect timestamp.