From 7d9e108ba3629b2e9120bc1da3354935c41aca37 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 2 Aug 2024 18:23:36 +0200 Subject: WIP: more hacks. --- tools/dcpdecryptmxf.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tools/dcpdecryptmxf.cc') diff --git a/tools/dcpdecryptmxf.cc b/tools/dcpdecryptmxf.cc index 1145d77d..fe7a2261 100644 --- a/tools/dcpdecryptmxf.cc +++ b/tools/dcpdecryptmxf.cc @@ -82,7 +82,7 @@ void copy (T const& in, shared_ptr writer, bool ignore_hmac) reader->set_check_hmac (!ignore_hmac); for (int64_t i = 0; i < in.intrinsic_duration(); ++i) { auto frame = reader->get_frame (i); - writer->write (frame->data(), frame->size()); + writer->write(frame.data(), frame.size()); } writer->finalize(); }; @@ -250,15 +250,15 @@ main (int argc, char* argv[]) reader->set_check_hmac(!ignore_hmac); for (int64_t i = 0; i < in.intrinsic_duration(); ++i) { auto frame = reader->get_frame(i); - std::vector pointers(frame->channels()); - for (auto channel = 0; channel < frame->channels(); ++channel) { - pointers[channel] = new int32_t[frame->samples()]; - for (auto sample = 0; sample < frame->samples(); ++sample) { - pointers[channel][sample] = frame->get(channel, sample); + std::vector pointers(frame.channels()); + for (auto channel = 0; channel < frame.channels(); ++channel) { + pointers[channel] = new int32_t[frame.samples()]; + for (auto sample = 0; sample < frame.samples(); ++sample) { + pointers[channel][sample] = frame.get(channel, sample); } } - writer->write(pointers.data(), frame->channels(), frame->samples()); - for (auto channel = 0; channel < frame->channels(); ++channel) { + writer->write(pointers.data(), frame.channels(), frame.samples()); + for (auto channel = 0; channel < frame.channels(); ++channel) { delete[] pointers[channel]; } } -- cgit v1.2.3