mirror of https://github.com/FFmpeg/FFmpeg.git
If the picture queue is empty, or when the calculated delay is 0, frame_timer is not increased but we are still displaying the old frame. When we eventually get a frame, where the computed delay is positive, so we don't need to drop any more frames, then it is best to update frame_timer to be as near as the current time as it can. This way we dont't have to wait several frames to add the necesarry delays to frame_timer to reach current time, therefore there are no extra frame drops after reaching a positive delay. Signed-off-by: Marton Balint <cus@passwd.hu>pull/2/head
parent
d2d8e1e599
commit
abb0e4f637
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue