Add a debugging message for reel length.
authorCarl Hetherington <cth@carlh.net>
Thu, 20 Dec 2018 22:11:14 +0000 (22:11 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 Dec 2018 22:11:14 +0000 (22:11 +0000)
src/lib/film.cc

index df9f148f44ac3f4e9d381783c24db94a73db2aca..d1759e0dcd8c0766b78c535bdbece6ff49af184e 100644 (file)
@@ -1505,6 +1505,7 @@ Film::reels () const
                DCPTime current;
                /* Integer-divide reel length by the size of one frame to give the number of frames per reel */
                Frame const reel_in_frames = _reel_length / ((j2k_bandwidth() / video_frame_rate()) / 8);
+               LOG_GENERAL ("Reel length is %1, J2K bandwidth %2, frame rate %3, frames per reel %4", _reel_length, j2k_bandwidth(), video_frame_rate(), reel_in_frames);
                while (current < len) {
                        DCPTime end = min (len, current + DCPTime::from_frames (reel_in_frames, video_frame_rate ()));
                        p.push_back (DCPTimePeriod (current, end));