From: Anthony Minessale Date: Thu, 26 Apr 2018 15:17:42 +0000 (-0500) Subject: FS-10892: [mod_av] Lip Sync Improvements -- increase delta #resolve X-Git-Tag: v1.8.1~3^2~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0734899b9a6001a2e601605ad29d324956a4fe37;p=thirdparty%2Ffreeswitch.git FS-10892: [mod_av] Lip Sync Improvements -- increase delta #resolve --- diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 7443183891..d35a853df8 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -1919,7 +1919,7 @@ GCC_DIAG_ON(deprecated-declarations) delta = context->video_timer.samplecount - context->last_vid_write; - if (context->audio_timer || delta >= 60) { + if (context->audio_timer || delta >= 200) { uint32_t new_pts = context->video_timer.samplecount * (handle->samplerate / 1000); if (!context->audio_timer) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Delta of %d detected. Video timer sync: %" SWITCH_UINT64_T_FMT "/%d %" SWITCH_UINT64_T_FMT "\n", delta, context->audio_st[0].next_pts, context->video_timer.samplecount, new_pts - context->audio_st[0].next_pts);