Commit 0802737f authored by jai_menon's avatar jai_menon

Fix off-by-1 error in the tag parsing code.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22945 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c9cb2fe3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment