[FFmpeg-cvslog] ffplay: if there is no audio stream, use external clock by default

Marton Balint git at videolan.org
Sun Oct 21 19:02:13 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Oct 14 00:47:15 2012 +0200| [3166a6fc379789b3782f431dd232033c2069c443] | committer: Marton Balint

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3166a6fc379789b3782f431dd232033c2069c443
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 95a6ac4..c6cf880 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;
     }



More information about the ffmpeg-cvslog mailing list