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;