[FFmpeg-devel] [RFC] function to check for valid UTF-8 string

Michael Niedermayer michaelni
Sun Dec 9 14:40:51 CET 2007

On Sun, Dec 09, 2007 at 11:18:32AM +0100, Reimar D?ffinger wrote:
> Hello,
> since Rich seems to have given up on it, here is a proposed patch
> that adds a av_check_utf8 function that could be used to validate
> input strings.
> Since it hacked it up very quickly please forgive any bugs or other
> stupidity.

maybe the function should return a index to the last valid or first
invalid byte or something like that?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Thouse who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071209/df47be20/attachment.pgp>

More information about the ffmpeg-devel mailing list