diff options
Diffstat (limited to 'src/lib/check_hashes_job.cc')
| -rw-r--r-- | src/lib/check_hashes_job.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/check_hashes_job.cc b/src/lib/check_hashes_job.cc index d1483933d..3967d0d70 100644 --- a/src/lib/check_hashes_job.cc +++ b/src/lib/check_hashes_job.cc @@ -57,10 +57,10 @@ CheckHashesJob::run () throw EncodeError ("cannot check hashes of a DCP with unknown length"); } - int const N = _film->dcp_length().get(); + SourceFrame const N = _film->dcp_trim_start() + _film->dcp_length().get(); DCPFrameRate const dfr = dcp_frame_rate (_film->frames_per_second ()); - for (int i = 0; i < N; i += dfr.skip) { + for (SourceFrame i = _film->dcp_trim_start(); i < N; i += dfr.skip) { string const j2k_file = _opt->frame_out_path (i, false); string const hash_file = j2k_file + ".md5"; |
