From ebf89c5e6200b65e5cc48bb7b3af23ab68ede749 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Jul 2022 23:08:56 +0200 Subject: Fix font_id errors with files decoded by FFmpeg which have subtitles. I'm not sure if this goes far enough - it seems impossible to find all the font IDs used in a FFmpeg file without scanning it. I don't know if (for example) SSA-format font IDs make it through to DoM when decoded by FFmpeg. --- test/subtitle_font_id_test.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/subtitle_font_id_test.cc b/test/subtitle_font_id_test.cc index 792e8eb55..51bccc70a 100644 --- a/test/subtitle_font_id_test.cc +++ b/test/subtitle_font_id_test.cc @@ -90,3 +90,13 @@ BOOST_AUTO_TEST_CASE(make_dcp_with_subs_from_smpte_dcp) make_and_verify_dcp(film); } + +BOOST_AUTO_TEST_CASE(make_dcp_with_subs_from_mkv) +{ + auto subs = content_factory(TestPaths::private_data() / "clapperboard_with_subs.mkv"); + auto film = new_test_film2("make_dcp_with_subs_from_mkv", subs); + subs[0]->text.front()->set_use(true); + subs[0]->text.front()->set_language(dcp::LanguageTag("en-US")); + make_and_verify_dcp(film, { dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_RATE_FOR_2K }); +} + -- cgit v1.2.3