diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-29 16:22:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-01 23:43:00 +0200 |
| commit | 7192b355e9754b0551d219de26b387905287495c (patch) | |
| tree | a408842a1445c3a5adb4dfb2508a718ca7f9fa9e /src/verify.cc | |
| parent | ad1b660b6b3132952bdc2d4e5682fa164c82dd37 (diff) | |
INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES: note -> size_in_bytes.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc index 72d2f0ac..a720d731 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -721,7 +721,7 @@ verify_smpte_timed_text_asset ( total_size += i.second.size(); } if (total_size > 10 * 1024 * 1024) { - context.add_note(VerificationNote::Code::INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES, fmt::to_string(total_size), asset->file().get()); + context.add_note(VerificationNote(VerificationNote::Code::INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES, asset->file().get()).set_size_in_bytes(total_size)); } if (asset->raw_xml()) { @@ -2028,7 +2028,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str case VerificationNote::Code::INVALID_TIMED_TEXT_SIZE_IN_BYTES: return compose("The size %1 of the timed text asset %2 is larger than the 115MB maximum.", *note.size_in_bytes(), filename()); case VerificationNote::Code::INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES: - return compose("The size %1 of the fonts in timed text asset %2 is larger than the 10MB maximum.", note.note().get(), filename()); + return compose("The size %1 of the fonts in timed text asset %2 is larger than the 10MB maximum.", *note.size_in_bytes(), filename()); case VerificationNote::Code::MISSING_SUBTITLE_LANGUAGE: return compose("The XML for the SMPTE subtitle asset %1 has no <Language> tag.", filename()); case VerificationNote::Code::MISMATCHED_SUBTITLE_LANGUAGES: |
