summaryrefslogtreecommitdiff
path: root/src/verify_j2k.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 /src/verify_j2k.cc
parent6f98afd8021f9475bbd342bdcb39162b3167fa9e (diff)
WIP: more hacks.shared-ptr
Diffstat (limited to 'src/verify_j2k.cc')
-rw-r--r--src/verify_j2k.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/verify_j2k.cc b/src/verify_j2k.cc
index 47ee151c..12179c8d 100644
--- a/src/verify_j2k.cc
+++ b/src/verify_j2k.cc
@@ -65,14 +65,14 @@ public:
void
-dcp::verify_j2k(shared_ptr<const Data> j2k, int start_index, int frame_index, int frame_rate, vector<VerificationNote>& notes)
+dcp::verify_j2k(ConstantData const& j2k, int start_index, int frame_index, int frame_rate, vector<VerificationNote>& notes)
{
/* See ITU-T T800 (visible on https://github.com/Ymagis/ClairMeta/issues/130) */
unsigned int const max_tile_part_size = std::floor(200e6 / (8 * frame_rate));
try {
- auto ptr = j2k->data();
- auto end = ptr + j2k->size();
+ auto ptr = j2k.data();
+ auto end = ptr + j2k.size();
map<string, uint8_t> markers = {
{ "SOC", 0x4f },