From a4ce95de811698503075a5f0b513e595f11f97a4 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 13 Nov 2010 19:27:01 +0200 Subject: core: do initial A-V sync by modifying audio stream Add code to enforce matching pts with video when (re)starting the audio stream, by either cutting away the first samples or inserting silence at the beginning. New option -noinitial-audio-sync can be used to disable this and return to old behavior. --- cfg-mplayer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cfg-mplayer.h') diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 95477edb33..21733912d5 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -309,6 +309,7 @@ const m_option_t mplayer_opts[]={ // a-v sync stuff: OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0), OPT_INTRANGE("pts-association-mode", user_pts_assoc_mode, 0, 0, 2), + OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0), {"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL}, {"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL}, -- cgit v1.2.3