mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffplay: dont drop all frames if realtime decoding is impossible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
872655fee9
commit
a30ef63354
2
ffplay.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user