summaryrefslogtreecommitdiff
path: root/test/decryption_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-02 18:23:36 +0200
committerCarl Hetherington <cth@carlh.net>2024-08-02 18:23:36 +0200
commit7d9e108ba3629b2e9120bc1da3354935c41aca37 (patch)
treec8ffdb2bca75d62bfe9fa2262e9fc4cd19c45027 /test/decryption_test.cc
parent6f98afd8021f9475bbd342bdcb39162b3167fa9e (diff)
WIP: more hacks.shared-ptr
Diffstat (limited to 'test/decryption_test.cc')
-rw-r--r--test/decryption_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/decryption_test.cc b/test/decryption_test.cc
index 1aadc461..7610d985 100644
--- a/test/decryption_test.cc
+++ b/test/decryption_test.cc
@@ -83,10 +83,10 @@ get_frame (dcp::DCP const & dcp)
auto mono_picture = dynamic_pointer_cast<const dcp::MonoJ2KPictureAsset>(picture);
auto reader = mono_picture->start_read();
auto j2k_frame = reader->get_frame(0);
- auto xyz = j2k_frame->xyz_image();
+ auto xyz = j2k_frame.xyz_image();
std::vector<uint8_t> argb(xyz->size().width * xyz->size().height * 4);
- dcp::xyz_to_rgba(j2k_frame->xyz_image(), dcp::ColourConversion::srgb_to_xyz(), argb.data(), xyz->size().width * 4);
+ dcp::xyz_to_rgba(j2k_frame.xyz_image(), dcp::ColourConversion::srgb_to_xyz(), argb.data(), xyz->size().width * 4);
return make_pair (argb, xyz->size ());
}