diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-31 01:36:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-06-02 21:06:56 +0200 |
| commit | d4d74faf2270f423235a5db47e9b48a17acdf970 (patch) | |
| tree | a87a2af8667ec61f4a7f9d701f23ed2f03019daa /test/test.cc | |
| parent | 056e3a4a7b41d4f78b73d46bba1973c5f1ffa139 (diff) | |
Verify error if SMPTE subtitle asset has <Text> but no <LoadFont>.v1.8.73
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc index 2dac199f..ffb85386 100644 --- a/test/test.cc +++ b/test/test.cc @@ -450,6 +450,8 @@ make_simple_with_smpte_subs (boost::filesystem::path path) subs->set_language (dcp::LanguageTag("de-DE")); subs->set_start_time (dcp::Time()); subs->add (simple_subtitle()); + dcp::ArrayData fake_font(1024); + subs->add_font("font", fake_font); subs->write (path / "subs.mxf"); @@ -485,6 +487,8 @@ make_simple_with_smpte_ccaps (boost::filesystem::path path) subs->set_language (dcp::LanguageTag("de-DE")); subs->set_start_time (dcp::Time()); subs->add (simple_subtitle()); + dcp::ArrayData fake_font(1024); + subs->add_font("font", fake_font); subs->write (path / "ccap.mxf"); auto reel_caps = make_shared<dcp::ReelSMPTEClosedCaptionAsset>(subs, dcp::Fraction(24, 1), 192, 0); |
