Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-10-14 02:47:15 +0400
committerMarton Balint <cus@passwd.hu>2012-10-21 19:18:12 +0400
commit3166a6fc379789b3782f431dd232033c2069c443 (patch)
tree5634b48d60560637bbcb189587e4599fe74792a1 /ffplay.c
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>
Diffstat (limited to 'ffplay.c')
-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;
}