From d5ae45841f92951340f65ebd5eafdae136e1d6bb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 4 Jul 2008 22:00:35 +0000 Subject: [PATCH] All id3 parsers are buggy, 0 termination fix 1 of n (issue created by andreas and found by reimar) fix is from reimar + cosmetics by me. Originally committed as revision 14069 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mp3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mp3.c b/libavformat/mp3.c index c54f0ee4ab..6d9689a649 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -185,6 +185,8 @@ static void id3v2_read_ttag(AVFormatContext *s, int taglen, char *dst, int dstle char *q; int len; + if(dstlen > 0) + dst[0]= 0; if(taglen < 1) return;