diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-27 23:27:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:17 +0100 |
| commit | edff38985837911f94bc31e4d82099ce1a56f4c8 (patch) | |
| tree | 2b5afc95cb7dbfe3fbd21136ff9969dd34b40a60 /src/lib/audio_content.cc | |
| parent | 1f4f56b4d5e3d08be5ff823c9890a8b4e0af5967 (diff) | |
Use a best guess for DCP audio rate to avoid passing in a Film.
Diffstat (limited to 'src/lib/audio_content.cc')
| -rw-r--r-- | src/lib/audio_content.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc index 50601fc58..0220a3012 100644 --- a/src/lib/audio_content.cc +++ b/src/lib/audio_content.cc @@ -398,13 +398,13 @@ AudioContent::modify_position(shared_ptr<const Film> film, DCPTime& pos) const void -AudioContent::modify_trim_start(shared_ptr<const Film> film, ContentTime& trim) const +AudioContent::modify_trim_start(ContentTime& trim) const { /* When this trim is used it the audio will have been resampled, and using the - * DCP rate here reduces the chance of rounding errors causing audio glitches - * due to errors in placement of audio frames (#2373). + * lowest allowed DCP rate here reduces the chance of rounding errors causing + * audio glitches due to errors in placement of audio frames (#2373). */ - trim = trim.round(film ? film->audio_frame_rate() : 48000); + trim = trim.round(48000); } |
