projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't fake-write encrypted video frames as the asset ID is somehow (?)
[dcpomatic.git]
/
src
/
lib
/
writer.cc
diff --git
a/src/lib/writer.cc
b/src/lib/writer.cc
index 227de6277731d4ff31a81649ef8eb24ed114bd1d..d6c3370b09cdfcb2d481f8d3aa737c0f311bf03b 100644
(file)
--- 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
{
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.
*/
/* We have to do a proper write of the first frame so that we can set up the JPEG2000
parameters in the asset writer.
*/