diff --git a/README.md b/README.md index ef136c4..5fe6070 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ on playback. But caption parsing with out of order frames behaviour is currently # Mac Os/Linux Install build dependencies (git, cmake, a compiler such as xcode, gcc or clang and optionally re2c and ffmpeg) * run `cmake . && make` -* or to compile without re2c `cmake -DENABLE_RE2C=OFF . && make` +* or to compile with re2c (required if .re2c file is modified) `cmake -DENABLE_RE2C=ON . && make` * finally `sudo make install` to install # Windows I have never tested libcaption in windows. It is written in pure C with no dependencies, diff --git a/src/eia608_from_utf8.c.cached b/src/eia608_from_utf8.c.cached index e511bd1..1c7a5a0 100644 --- a/src/eia608_from_utf8.c.cached +++ b/src/eia608_from_utf8.c.cached @@ -1,4 +1,4 @@ -/* Generated by re2c 1.0.2 on Tue Oct 10 11:21:38 2017 */ +/* Generated by re2c 1.0.2 on Thu Oct 12 15:03:09 2017 */ /**********************************************************************************************/ /* The MIT License */ /* */ diff --git a/src/utf8.c b/src/utf8.c index f2ac2c6..b0ffa60 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -45,7 +45,7 @@ size_t utf8_char_length(const utf8_char_t* c) 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 4, 0 }; - return _utf8_char_length[(c[0] >> 3)&0x1F]; + return _utf8_char_length[(c[0] >> 3) & 0x1F]; } int utf8_char_whitespace(const utf8_char_t* c)