diff options
author | Jai Menon <jmenon86@gmail.com> | 2010-04-22 12:54:50 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2010-04-22 12:54:50 +0000 |
commit | 037e9afd37e11bec8ac3bef5f0688c18edf022f5 (patch) | |
tree | c5ac1779cf465e7581746b92b7fe15a698a4f7b0 /libavformat | |
parent | ddecab2097e7c38eb0ef1a1cbd0f6465e8dbd1c3 (diff) | |
download | ffmpeg-037e9afd37e11bec8ac3bef5f0688c18edf022f5.tar.gz |
Fix off-by-1 error in the tag parsing code.
Originally committed as revision 22945 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/id3v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index f007a3c5d7..89c0e63adf 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -127,7 +127,7 @@ static void read_ttag(AVFormatContext *s, int taglen, const char *key) break; case 3: /* UTF-8 */ - len = FFMIN(taglen, dstlen - 1); + len = FFMIN(taglen, dstlen); get_buffer(s->pb, dst, len); dst[len] = 0; break; |