summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-17 01:17:34 +0100
committerwm4 <wm4@nowhere>2019-11-17 02:11:45 +0100
commit23414d1d7136a17a5b09271917e4be346f00df03 (patch)
treef52a24d58098a90d0ed4ebd0aaf44ed29233aa33
parentc7487cebd15749bac23fc0a994479723fa2809e9 (diff)
downloadmpv-23414d1d7136a17a5b09271917e4be346f00df03.tar.bz2
mpv-23414d1d7136a17a5b09271917e4be346f00df03.tar.xz
audio: log A/V initial sync status
-rw-r--r--player/audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index eb6081e26d..529902b535 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -656,6 +656,9 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip)
}
ptsdiff = MPCLAMP(ptsdiff, -3600, 3600);
+ MP_VERBOSE(mpctx, "audio sync: sync_to_video=%d, offset=%f\n",
+ sync_to_video, ptsdiff);
+
int align = af_format_sample_alignment(ao_format);
*skip = (int)(-ptsdiff * play_samplerate) / align * align;
return true;