Skip every other frame with 50fps sources.
[dcpomatic.git] / src / lib / check_hashes_job.cc
index a9f8ac90b0633c54cc4401b7afe29e19574f6375..d1483933d3e0172707cf20772f3defe9781855dc 100644 (file)
@@ -58,8 +58,9 @@ CheckHashesJob::run ()
        }
        
        int const N = _film->dcp_length().get();
+       DCPFrameRate const dfr = dcp_frame_rate (_film->frames_per_second ());
        
-       for (int i = 0; i < N; ++i) {
+       for (int i = 0; i < N; i += dfr.skip) {
                string const j2k_file = _opt->frame_out_path (i, false);
                string const hash_file = j2k_file + ".md5";