diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-20 22:51:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-20 22:51:15 +0100 |
| commit | d330522cb1a0504e5f85c2346344e04916c68a4f (patch) | |
| tree | 65f711f94bbb7752610b0f740e115005692927f7 /src/lib/film.cc | |
| parent | 8837c451db6d87faf4bf23b16297f7b4e05ddbbe (diff) | |
Always add FFOC and LFOC markers (#1805).
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 87037f51f..3d822c5ea 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -2062,3 +2062,17 @@ InfoFileHandle::~InfoFileHandle () { fclose (_handle); } + + +/** Add FFOC and LFOC markers to a list if they are not already there */ +void +Film::add_ffoc_lfoc (Markers& markers) const +{ + if (markers.find(dcp::Marker::FFOC) == markers.end()) { + markers[dcp::Marker::FFOC] = dcpomatic::DCPTime(0); + } + + if (markers.find(dcp::Marker::LFOC) == markers.end()) { + markers[dcp::Marker::LFOC] = length() - DCPTime::from_frames(1, video_frame_rate()); + } +} |
