Various fixes to still-image mode.
[dcpomatic.git] / src / lib / dcp_video_frame.cc
index 7099f73defc9a8c7a1b70e53efc37e8ae2387d8d..8b70b0aa4697286e82f3b0da3abad72b7f3e95c9 100644 (file)
@@ -395,7 +395,7 @@ EncodedData::write (shared_ptr<const EncodeOptions> opt, SourceFrame frame)
        boost::filesystem::rename (tmp_j2k, real_j2k);
 
        /* Write a file containing the hash */
-       string const hash = real_j2k + ".md5";
+       string const hash = opt->hash_out_path (frame, false);
        ofstream h (hash.c_str());
        h << md5_digest (_data, _size) << "\n";
        h.close ();