diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-04-15 23:13:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-15 23:13:10 +0200 |
| commit | b47f0559041040495a08eb0b5cc2d62068d83952 (patch) | |
| tree | 3c90f9ad6ec354e453988daf8228f2327a1d681d /src | |
| parent | 61c6b8a23ef6381c2d1b1aaa5bfc1e31e35a7ec0 (diff) | |
Fix erroneous closed caption line length errors with UTF-8 multibyte characters (DoM #3097).
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/verify.cc b/src/verify.cc index ac12800b..2af2cc58 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1211,7 +1211,7 @@ dcp::verify_text_lines_and_characters( /* Make a list of "subtitle starts" and "subtitle ends" events */ for (auto j: asset->texts()) { if (auto text = dynamic_pointer_cast<const TextString>(j)) { - auto in = make_shared<Event>(text->in(), position(text), text->text().length()); + auto in = make_shared<Event>(text->in(), position(text), utf8_strlen(text->text())); events.push_back(in); events.push_back(make_shared<Event>(text->out(), in)); } |
