You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
2
ffplay.c
2
ffplay.c
@@ -1076,7 +1076,7 @@ static int get_master_sync_type(VideoState *is) {
|
|||||||
if (is->audio_st)
|
if (is->audio_st)
|
||||||
return AV_SYNC_AUDIO_MASTER;
|
return AV_SYNC_AUDIO_MASTER;
|
||||||
else
|
else
|
||||||
return AV_SYNC_VIDEO_MASTER;
|
return AV_SYNC_EXTERNAL_CLOCK;
|
||||||
} else {
|
} else {
|
||||||
return AV_SYNC_EXTERNAL_CLOCK;
|
return AV_SYNC_EXTERNAL_CLOCK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user