summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-19 05:55:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-20 01:58:18 +0200
commit6c0f5172f6735c0b185721ff0f456f53ef7ac677 (patch)
tree32d7d5fc9ab441d507353e1069194075fa00ee62 /ffplay.c
parentfd2c0a5db242a3c89a89f1dd2ae9e3155e48f9e2 (diff)
ffplay: dont drop frames by default when there is no audio stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index b88387691d..ccb6045175 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -254,7 +254,7 @@ static int autoexit;
static int exit_on_keydown;
static int exit_on_mousedown;
static int loop=1;
-static int framedrop=1;
+static int framedrop=-1;
static enum ShowMode show_mode = SHOW_MODE_NONE;
static int rdftspeed=20;
@@ -1139,7 +1139,7 @@ retry:
}else{
next_target= vp->target_clock + is->video_clock - vp->pts; //FIXME pass durations cleanly
}
- if(framedrop && time > next_target){
+ 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){
/* update queue size and signal for next picture */