[FFmpeg-devel] [PATCH] ffplay: only drop frames if not in frame step mode
Marton Balint
cus at passwd.hu
Wed Dec 26 21:01:09 CET 2012
Signed-off-by: Marton Balint <cus at passwd.hu>
---
ffplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index 3b59123..7d47bcd 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1346,7 +1346,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;
--
1.7.10.4
More information about the ffmpeg-devel
mailing list