ffplay: dont drop all frames if realtime decoding is impossible

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-09-14 14:56:59 +02:00
parent 872655fee9
commit a30ef63354

View File

@ -1133,7 +1133,7 @@ retry:
} }
if((framedrop>0 || (framedrop && is->audio_st)) && time > next_target){ if((framedrop>0 || (framedrop && is->audio_st)) && time > next_target){
is->skip_frames *= 1.0 + FRAME_SKIP_FACTOR; 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 */ /* update queue size and signal for next picture */
if (++is->pictq_rindex == VIDEO_PICTURE_QUEUE_SIZE) if (++is->pictq_rindex == VIDEO_PICTURE_QUEUE_SIZE)
is->pictq_rindex = 0; is->pictq_rindex = 0;