diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-01 11:25:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-01 11:25:20 +0100 |
| commit | 1b81a1ee7c4eba533fd49939f8e76744f94038b6 (patch) | |
| tree | cdf96204744084f51f2131effcdd00c0eb6a01fc /src | |
| parent | c0d9ec5d4c7a75448ec36501c2764073b1f12116 (diff) | |
Increase fudge factor at the boundary between audio signal and silence.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/player.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index b3fba1aec..2bf9b1860 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -648,12 +648,15 @@ Player::pass () if (_last_audio_time) { /* Sometimes the thing that happened last finishes fractionally before or after this silence. Bodge the start time of the silence to fix it. + I think is nothing too bad to worry about since we will just add or + remove a little silence at the end of some content. */ int64_t const error = labs(period.from.get() - _last_audio_time->get()); - if (error >= 2) { + int64_t const too_much_error = 4; + if (error >= too_much_error) { _film->log()->log(String::compose("Silence starting before or after last audio by %1", error), LogEntry::TYPE_ERROR); } - DCPOMATIC_ASSERT (error < 2); + DCPOMATIC_ASSERT (error < too_much_error); period.from = *_last_audio_time; } if (period.duration() > one_video_frame()) { |
