summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-07 14:20:19 +0000
committerCarl Hetherington <cth@carlh.net>2018-03-07 14:20:19 +0000
commitd516d8e159e99d7b3b8250f39f976574df072cd8 (patch)
tree46d5222089c963023ed956a521273c21863cf8ea
parent92cd9c7f991f35942e70df341498a6b71b058e63 (diff)
Don't fake-write encrypted video frames as the asset ID is somehow (?)
embedded in the HMAC (#1232).
-rw-r--r--ChangeLog4
-rw-r--r--src/lib/writer.cc5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e9e5a24b..3bf12175c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-03-07 Carl Hetherington <cth@carlh.net>
+
+ * Fix bad DCPs when re-making in encrypted projects (#1232).
+
2018-03-02 Carl Hetherington <cth@carlh.net>
* Fix bad Prores exports in some cases (#1227).
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 227de6277..d6c3370b0 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -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.
*/