ffplay: if there is no audio stream, use external clock by default
authorMarton Balint <cus@passwd.hu>
Sat, 13 Oct 2012 22:47:15 +0000 (00:47 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 21 Oct 2012 15:18:12 +0000 (17:18 +0200)
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>
ffplay.c

index 95a6ac4..c6cf880 100644 (file)
--- 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;
     }