X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fcheck_hashes_job.cc;h=f60a2d40d62cff94e24473503dc5a84e733e7357;hb=97675be04d4a87e00c99733ee7b904ccbe632994;hp=cf269564aa7f2dc81717907249e087fef2c5d835;hpb=bed01a8e72f31e73ea8f206f9b18d5910416e0c2;p=dcpomatic.git diff --git a/src/lib/check_hashes_job.cc b/src/lib/check_hashes_job.cc index cf269564a..f60a2d40d 100644 --- a/src/lib/check_hashes_job.cc +++ b/src/lib/check_hashes_job.cc @@ -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";