summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-12-26 19:53:58 +0100
committerMarton Balint <cus@passwd.hu>2012-12-28 20:00:07 +0100
commit4e33d8ebb39f4c1869e078a0cc3b808a02aa16c4 (patch)
treedbd6c9e99386fcebab564c776a6ecca0d31d3774 /ffplay.c
parent97660b8b137fd3161d669f2e894740af75608c04 (diff)
ffplay: only drop frames if not in frame step mode
Fixes ticket #2053. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 070fbd7ea6..f9ea20d9d9 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1339,7 +1339,7 @@ retry:
if (is->pictq_size > 1) {
VideoPicture *nextvp = &is->pictq[(is->pictq_rindex + 1) % VIDEO_PICTURE_QUEUE_SIZE];
duration = nextvp->pts - vp->pts;
- if((framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) && time > is->frame_timer + duration){
+ if(!is->step && (framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) && time > is->frame_timer + duration){
is->frame_drops_late++;
pictq_next_picture(is);
goto retry;