[FFmpeg-devel] [PATCH 9/9] ffplay: if there is no audio stream, use external clock by default
Marton Balint
cus at passwd.hu
Sun Oct 14 19:11:54 CEST 2012
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>
---
ffplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index 26f0c29..7cce92c 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;
}
--
1.7.10.4
More information about the ffmpeg-devel
mailing list