diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-01-19 10:13:25 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-21 20:36:01 +0100 |
commit | eeb0b893e3f68f98816e05316573908e46e3ebb5 (patch) | |
tree | d52cdefd2b0effc7040c0ca4726d847466b7ae50 /libavformat/id3v2.h | |
parent | a091006d3d18c094312ebb4b3f064e419ef941b0 (diff) | |
download | ffmpeg-eeb0b893e3f68f98816e05316573908e46e3ebb5.tar.gz |
id3v2: use an enum for encodings instead of magic numbers.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d66eff36852975129ae499c56de4340e48b9b7b4)
Diffstat (limited to 'libavformat/id3v2.h')
-rw-r--r-- | libavformat/id3v2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/id3v2.h b/libavformat/id3v2.h index 25ee53e9b8..c2e1add849 100644 --- a/libavformat/id3v2.h +++ b/libavformat/id3v2.h @@ -38,6 +38,13 @@ #define ID3v2_FLAG_ENCRYPTION 0x0004 #define ID3v2_FLAG_COMPRESSION 0x0008 +enum ID3v2Encoding { + ID3v2_ENCODING_ISO8859 = 0, + ID3v2_ENCODING_UTF16BOM = 1, + ID3v2_ENCODING_UTF16BE = 2, + ID3v2_ENCODING_UTF8 = 3, +}; + /** * Detect ID3v2 Header. * @param buf must be ID3v2_HEADER_SIZE byte long |