+2012-10-07 Carl Hetherington <cth@carlh.net>
+
+ * Fix up some bugs when using limited DCP
+ range (reported by Wolfgang Woehl).
+
2012-10-02 Carl Hetherington <cth@carlh.net>
* Version 0.54 released.
CheckHashesJob::run ()
{
_bad = 0;
+
+ int const N = _fs->dcp_length ();
- for (int i = 0; i < _fs->length; ++i) {
+ for (int i = 0; i < N; ++i) {
string const j2k_file = _opt->frame_out_path (i, false);
string const hash_file = j2k_file + ".md5";
return rint (t);
}
+
+int
+FilmState::dcp_length () const
+{
+ if (dcp_frames) {
+ return dcp_frames;
+ }
+
+ return length;
+}
+
+
Size cropped_size (Size) const;
+ int dcp_length () const;
+
/** Complete path to directory containing the film metadata;
must not be relative.
*/
return 0;
}
- return ((_fs->length - _encoder->last_frame()) / fps);
+ return ((_fs->dcp_length() - _encoder->last_frame()) / fps);
}