It seem to be a logic error here.
[AML] Fix pts error correction logic
After applying this fix, frame jump is not that noticeable on my meson6 board.
Can you provide some more info for testing? I can't see a difference in the samples I've tested. Obviously the code is wrong, I'm just not sure that swapping the values is correct.
Frame jumping happens only when our hardware reports wrong pts. So it's hard to reproduce that on a normal hardware. Maybe the values should be changed to more reasonable value for most common user.