projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddecab2
)
Fix off-by-1 error in the tag parsing code.
author
Jai Menon
<jmenon86@gmail.com>
Thu, 22 Apr 2010 12:54:50 +0000
(12:54 +0000)
committer
Jai Menon
<jmenon86@gmail.com>
Thu, 22 Apr 2010 12:54:50 +0000
(12:54 +0000)
Originally committed as revision 22945 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/id3v2.c
patch
|
blob
|
history
diff --git
a/libavformat/id3v2.c
b/libavformat/id3v2.c
index
f007a3c
..
89c0e63
100644
(file)
--- 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;