Fix up some bugs when using limited DCP range (reported by Wolfgang Woehl).
[dcpomatic.git] / src / lib / check_hashes_job.cc
index cf269564aa7f2dc81717907249e087fef2c5d835..f60a2d40d62cff94e24473503dc5a84e733e7357 100644 (file)
@@ -48,8 +48,10 @@ void
 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";