summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-24 23:19:44 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-24 23:19:44 +0200
commit8305f28ea22a834cc4a9e4b324110b5ff4ba1bd1 (patch)
treea624646b4e077369e8867db120cc3523a8700cac /src
parent6a1a6e5462172fad159b39f0f73b1e81dc1848aa (diff)
Check for missing font files referred from Interop closed captions (as well as subs).
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 42ee1921..620ee31d 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -715,9 +715,9 @@ verify_smpte_timed_text_asset (
}
-/** Verify Interop subtitle-only stuff */
+/** Verify Interop subtitle / CCAP stuff */
void
-verify_interop_subtitle_asset(shared_ptr<const InteropSubtitleAsset> asset, vector<VerificationNote>& notes)
+verify_interop_text_asset(shared_ptr<const InteropSubtitleAsset> asset, vector<VerificationNote>& notes)
{
if (asset->subtitles().empty()) {
notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_SUBTITLE, asset->id(), asset->file().get() });
@@ -806,7 +806,7 @@ verify_subtitle_asset (
auto interop = dynamic_pointer_cast<const InteropSubtitleAsset>(asset);
if (interop) {
- verify_interop_subtitle_asset(interop, notes);
+ verify_interop_text_asset(interop, notes);
if (namespace_count(asset, "DCSubtitle") > 1) {
notes.push_back({ VerificationNote::Type::WARNING, VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT, asset->id() });
}
@@ -848,6 +848,11 @@ verify_closed_caption_asset (
notes.push_back ({VerificationNote::Type::WARNING, VerificationNote::Code::MISSED_CHECK_OF_ENCRYPTED});
}
+ auto interop = dynamic_pointer_cast<const InteropSubtitleAsset>(asset);
+ if (interop) {
+ verify_interop_text_asset(interop, notes);
+ }
+
auto smpte = dynamic_pointer_cast<const SMPTESubtitleAsset>(asset);
if (smpte) {
verify_smpte_timed_text_asset (smpte, reel_asset_duration, notes);