[FFmpeg-devel] [PATCH 1/3] lavu: add av_is_valid_utf8().

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 7 10:30:23 CEST 2013

On Sun, Apr 07, 2013 at 10:23:44AM +0200, Nicolas George wrote:
> +#define REJECT(f) (!(flags & AV_UTF8_ACCEPT_ ## f))

I don't think this macro improves readability, quite the opposite.

> +    AV_UTF8_ACCEPT_REVERSED_BOM    = 0x08,

Why should a normal byte-order-mark be accepted in UTF-8?
It really has no place or purpose in it either.
(though it might be hard to detect, since the code point is really just
a special non-breaking space I think)

More information about the ffmpeg-devel mailing list