From 3b1c4a06f684563ee06eafb83635473fa88c8bbe Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Mon, 2 Feb 2009 22:17:14 +0000 Subject: [PATCH] simplify usage of dstlen as it is not a parameter anymore Originally committed as revision 16956 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mp3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/mp3.c b/libavformat/mp3.c index ba3baf1423..f81c24872c 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -170,16 +170,14 @@ static unsigned int id3v2_get_size(ByteIOContext *s, int len) static void id3v2_read_ttag(AVFormatContext *s, int taglen, const char *key) { char *q, dst[512]; - int len, dstlen = sizeof(dst); + int len, dstlen = sizeof(dst) - 1; unsigned genre; - if(dstlen > 0) dst[0]= 0; if(taglen < 1) return; taglen--; /* account for encoding type byte */ - dstlen--; /* Leave space for zero terminator */ switch(get_byte(s->pb)) { /* encoding type */