diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-20 14:56:30 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-20 14:56:30 +0200 |
| commit | aae2f02038b1cd36e1b1bf2e4f0821e86cff2841 (patch) | |
| tree | 7b45301d14cf1976d22cd2cb14d9f5e45c814e88 /src | |
| parent | 31c09e22b74e3a4cf5c16952f8634caea3920625 (diff) | |
Fix crash when trying to verify an encrypted SMPTE subtitle asset.v1.8.67
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/verify.cc b/src/verify.cc index 6a1cbd2d..b49695c7 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -810,7 +810,8 @@ verify_subtitle_asset ( if (smpte) { verify_smpte_timed_text_asset (smpte, reel_asset_duration, notes); verify_smpte_subtitle_asset (smpte, notes, state); - if (namespace_count(asset, "SubtitleReel") > 1) { + /* This asset may be encrypted and in that case we'll have no raw_xml() */ + if (asset->raw_xml() && namespace_count(asset, "SubtitleReel") > 1) { notes.push_back({ VerificationNote::Type::WARNING, VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT, asset->id()}); } } |
