diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-04 22:00:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-04 22:00:35 +0000 |
commit | d5ae45841f92951340f65ebd5eafdae136e1d6bb (patch) | |
tree | c325f72a606177378060c9736fc587ad6f9a414d | |
parent | 6f1e7a9e09ca4350509f265352241179d1fe78e0 (diff) | |
download | ffmpeg-d5ae45841f92951340f65ebd5eafdae136e1d6bb.tar.gz |
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
-rw-r--r-- | libavformat/mp3.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |