[FFmpeg-cvslog] ffplay: dont drop all frames if realtime decoding is impossible

Michael Niedermayer git at videolan.org
Wed Sep 14 16:44:06 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 14 14:56:59 2011 +0200| [a30ef633546ecf382d1913159870bd74649c680f] | committer: Michael Niedermayer

ffplay: dont drop all frames if realtime decoding is impossible

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index a9013ac..29e1120 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1133,7 +1133,7 @@ retry:
             }
             if((framedrop>0 || (framedrop && is->audio_st)) && time > next_target){
                 is->skip_frames *= 1.0 + FRAME_SKIP_FACTOR;
-                if(is->pictq_size > 1 || time > next_target + 0.5){
+                if(is->pictq_size > 1){
                     /* update queue size and signal for next picture */
                     if (++is->pictq_rindex == VIDEO_PICTURE_QUEUE_SIZE)
                         is->pictq_rindex = 0;



More information about the ffmpeg-cvslog mailing list