aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2011-10-09 16:52:28 +0200
committerMarton Balint <cus@passwd.hu>2011-10-16 19:21:01 +0200
commitabb0e4f63772fe96f5e221b8a579180cb4ebe5a9 (patch)
tree56234b2b299f2ef6e2bdd7e8d78c45088b5b9738 /libavcodec/dirac.c
parentd2d8e1e599a4b5c01e5be9267ac85105e843d928 (diff)
downloadffmpeg-abb0e4f63772fe96f5e221b8a579180cb4ebe5a9.tar.gz
ffplay: add delay multiple times to frame_timer if it is less than current time
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>
Diffstat (limited to 'libavcodec/dirac.c')
0 files changed, 0 insertions, 0 deletions