From 4eef3ac6e393bedba5b1e524fd422e92ba9b0be6 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 10e4514fb..deb93b6c1 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -634,6 +634,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