Don't fake-write encrypted video frames as the asset ID is somehow (?)
[dcpomatic.git] / src / lib / writer.cc
index 227de6277731d4ff31a81649ef8eb24ed114bd1d..d6c3370b09cdfcb2d481f8d3aa737c0f311bf03b 100644 (file)
@@ -637,6 +637,11 @@ Writer::write_cover_sheet ()
 bool
 Writer::can_fake_write (Frame frame) const
 {
+       if (_film->encrypted()) {
+               /* We need to re-write the frame because the asset ID is embedded in the HMAC... I think... */
+               return false;
+       }
+
        /* We have to do a proper write of the first frame so that we can set up the JPEG2000
           parameters in the asset writer.
        */