From d516d8e159e99d7b3b8250f39f976574df072cd8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 7 Mar 2018 14:20:19 +0000 Subject: Don't fake-write encrypted video frames as the asset ID is somehow (?) embedded in the HMAC (#1232). --- src/lib/writer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib') 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. */ -- cgit v1.2.3