From 3166a6fc379789b3782f431dd232033c2069c443 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sun, 14 Oct 2012 00:47:15 +0200 Subject: 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 --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffplay.c') 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; } -- cgit v1.2.3