diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-17 22:33:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-17 22:33:55 +0000 |
| commit | 95f4db0a8bb5bbf742a0195fbbe17d304fb99507 (patch) | |
| tree | 6b6cd352a739fb14ba57f81eeef6bb345c3bd045 /src/lib/util.h | |
| parent | 1b5168ff5e624b1617059e529f30da460d81246c (diff) | |
Read UTF8 string lengths correctly when checking closed captions (part of #1446).
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index bdf2480fc..7c0eb4b6d 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -100,6 +100,7 @@ extern boost::shared_ptr<AudioBuffers> remap (boost::shared_ptr<const AudioBuffe extern Eyes increment_eyes (Eyes e); extern void checked_fread (void* ptr, size_t size, FILE* stream, boost::filesystem::path path); extern void checked_fwrite (void const * ptr, size_t size, FILE* stream, boost::filesystem::path path); +extern size_t utf8_strlen (std::string s); #ifdef DCPOMATIC_VARIANT_SWAROOP extern boost::shared_ptr<dcp::CertificateChain> read_swaroop_chain (boost::filesystem::path path); extern void write_swaroop_chain (boost::shared_ptr<const dcp::CertificateChain> chain, boost::filesystem::path output); |
