FS-10249: [mod_av] Audio gradually falls behind video in recordings

This commit is contained in:
Anthony Minessale 2017-05-26 17:41:07 -05:00
parent 414f8085bb
commit 84ec92048a
1 changed files with 2 additions and 1 deletions

View File

@ -2256,12 +2256,13 @@ static void check_jb_sync(switch_core_session_t *session)
if (!frames) {
sync_audio = 1;
if (cur_frames && min_frames && cur_frames >= min_frames) {
frames = cur_frames;
} else {
frames = fps / 15;
if (frames < 1) frames = 1;
sync_audio = 1;
}
}