diff options
author | Marton Balint <cus@passwd.hu> | 2012-10-14 02:47:15 +0400 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2012-10-21 19:18:12 +0400 |
commit | 3166a6fc379789b3782f431dd232033c2069c443 (patch) | |
tree | 5634b48d60560637bbcb189587e4599fe74792a1 /ffplay.c | |
parent | d30c69251f04bf56d2a6f0d3dabd5ea1561dc3f7 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |