Browse code

ffplay: dont drop all frames if realtime decoding is impossible

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

Michael Niedermayer authored on 2011/09/14 21:56:59
Showing 1 changed files
... ...
@@ -1133,7 +1133,7 @@ retry:
1133 1133
             }
1134 1134
             if((framedrop>0 || (framedrop && is->audio_st)) && time > next_target){
1135 1135
                 is->skip_frames *= 1.0 + FRAME_SKIP_FACTOR;
1136
-                if(is->pictq_size > 1 || time > next_target + 0.5){
1136
+                if(is->pictq_size > 1){
1137 1137
                     /* update queue size and signal for next picture */
1138 1138
                     if (++is->pictq_rindex == VIDEO_PICTURE_QUEUE_SIZE)
1139 1139
                         is->pictq_rindex = 0;