Fix off-by-1 error in the tag parsing code.
Originally committed as revision 22945 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ddecab2097
commit
037e9afd37
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user