[FFmpeg-cvslog] ffplay: only drop frames if not in frame step mode

Marton Balint git at videolan.org
Sat Dec 29 04:40:35 CET 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Dec 26 19:53:58 2012 +0100| [4e33d8ebb39f4c1869e078a0cc3b808a02aa16c4] | committer: Marton Balint

ffplay: only drop frames if not in frame step mode

Fixes ticket #2053.

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e33d8ebb39f4c1869e078a0cc3b808a02aa16c4
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 070fbd7..f9ea20d 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;



More information about the ffmpeg-cvslog mailing list