[FFmpeg-devel] [PATCH] lavu/avstring: add av_get_utf8() function
stefasab at gmail.com
Thu Nov 7 22:59:33 CET 2013
On date Thursday 2013-11-07 22:03:13 +0100, Stefano Sabatini encoded:
> On date Thursday 2013-10-03 01:23:47 +0200, Stefano Sabatini encoded:
> > TODO: minor bump, APIchanges entry
> > ---
> > libavutil/avstring.c | 25 +++++++++++++++++++++++++
> > libavutil/avstring.h | 10 ++++++++++
> > 2 files changed, 35 insertions(+)
> Updated, with utility test included.
> Removed the flags argument since I'm not sure they are really useful.
A possible idea would be: ONLY_SKIP_FIRST_INVALID_CHAR
This would allow to skip only non-ASCII characters in 8-bits
encoding. For example a two bytes sequence may be encoded in a legacy
8-bit encoding, where the first byte encodes for an invalid ASCII
character, and the second for an ASCII character, but which results in
an invalid UTF-8 two bytes sequence (example: E622).
On the other hand this use case seems too much specific.
FFmpeg = Fascinating & Fantastic Mortal Picky Extended Guru
More information about the ffmpeg-devel