From 6164842300184ac19496192d2dd2fa3e5c2eafa6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 24 Feb 2010 18:01:44 +0000 Subject: Mention that metadata tags are (unvalidated) UTF-8. Patch by Anton Khirnov . Originally committed as revision 22028 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 65e4a84c9d..e7426aa16d 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -63,7 +63,9 @@ struct AVFormatContext; /* * Public Metadata API. * The metadata API allows libavformat to export metadata tags to a client - * application using a sequence of key/value pairs. + * application using a sequence of key/value pairs. Like all strings in FFmpeg, + * metadata must be stored as UTF-8 encoded Unicode. Note that metadata + * exported by demuxers isn't checked to be valid UTF-8 in most cases. * Important concepts to keep in mind: * 1. Keys are unique; there can never be 2 tags with the same key. This is * also meant semantically, i.e., a demuxer should not knowingly produce -- cgit v1.2.3