summaryrefslogtreecommitdiff
path: root/libavformat/mp3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-04 22:00:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-04 22:00:35 +0000
commitd5ae45841f92951340f65ebd5eafdae136e1d6bb (patch)
treec325f72a606177378060c9736fc587ad6f9a414d /libavformat/mp3.c
parent6f1e7a9e09ca4350509f265352241179d1fe78e0 (diff)
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
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r--libavformat/mp3.c2
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;