summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-16 17:44:33 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-16 19:28:54 +0100
commit45ed3bf55175a8555123b320b366efb69b1ba629 (patch)
tree64b9a8659d72af8c09ce663fd49592c780497fe6 /src/verify.cc
parentd2a71383bf9f47ac4277d8c353914cbfa6ab3a05 (diff)
Rename assets() to file_assets()
since this is what it was returning anyway.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 4a767de1..2f094ebe 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1406,22 +1406,21 @@ verify_reel(
map<Marker, Time>* markers_seen
)
{
- for (auto i: reel->assets()) {
+ for (auto i: reel->file_assets()) {
if (i->duration() && (i->duration().get() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) {
context.error(VerificationNote::Code::INVALID_DURATION, i->id());
}
if ((i->intrinsic_duration() * i->edit_rate().denominator / i->edit_rate().numerator) < 1) {
context.error(VerificationNote::Code::INVALID_INTRINSIC_DURATION, i->id());
}
- auto file_asset = dynamic_pointer_cast<ReelFileAsset>(i);
- if (i->encryptable() && !file_asset->hash()) {
+ if (i->encryptable() && !i->hash()) {
context.bv21_error(VerificationNote::Code::MISSING_HASH, i->id());
}
}
if (context.dcp->standard() == Standard::SMPTE) {
boost::optional<int64_t> duration;
- for (auto i: reel->assets()) {
+ for (auto i: reel->file_assets()) {
if (!duration) {
duration = i->actual_duration();
} else if (*duration != i->actual_duration()) {