Browse code

ffplay: only drop frames if not in frame step mode

Fixes ticket #2053.

Signed-off-by: Marton Balint <cus@passwd.hu>

Marton Balint authored on 2012/12/27 03:53:58
Showing 1 changed files
... ...
@@ -1339,7 +1339,7 @@ retry:
1339 1339
             if (is->pictq_size > 1) {
1340 1340
                 VideoPicture *nextvp = &is->pictq[(is->pictq_rindex + 1) % VIDEO_PICTURE_QUEUE_SIZE];
1341 1341
                 duration = nextvp->pts - vp->pts;
1342
-                if((framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) && time > is->frame_timer + duration){
1342
+                if(!is->step && (framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) && time > is->frame_timer + duration){
1343 1343
                     is->frame_drops_late++;
1344 1344
                     pictq_next_picture(is);
1345 1345
                     goto retry;