From 621b82e1a5dfeb34602f336d645c670618d6db7e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 12 Dec 2020 20:21:28 +0100 Subject: Bv2.1 6.2.1: Check that additional subtitle languages conform to RFC 5646. --- src/verify.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index e5deb789..16233021 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -643,6 +643,10 @@ dcp::verify ( stage ("Checking CPL", cpl->file()); validate_xml (cpl->file().get(), xsd_dtd_directory, notes); + BOOST_FOREACH (string const& i, cpl->additional_subtitle_languages()) { + verify_language_tag (i, notes); + } + /* Check that the CPL's hash corresponds to the PKL */ BOOST_FOREACH (shared_ptr i, dcp->pkls()) { optional h = i->hash(cpl->id()); -- cgit v1.2.3