summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-10-14 00:47:15 +0200
committerMarton Balint <cus@passwd.hu>2012-10-21 17:18:12 +0200
commit3166a6fc379789b3782f431dd232033c2069c443 (patch)
tree5634b48d60560637bbcb189587e4599fe74792a1
parentd30c69251f04bf56d2a6f0d3dabd5ea1561dc3f7 (diff)
ffplay: if there is no audio stream, use external clock by default
Otherwise playing the video could be much slower than realtime if the system can't decode or display the frames fast enough. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 95a6ac4635..c6cf880ccc 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1076,7 +1076,7 @@ static int get_master_sync_type(VideoState *is) {
if (is->audio_st)
return AV_SYNC_AUDIO_MASTER;
else
- return AV_SYNC_VIDEO_MASTER;
+ return AV_SYNC_EXTERNAL_CLOCK;
} else {
return AV_SYNC_EXTERNAL_CLOCK;
}