summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Öman <andreas@lonelycoder.com>2007-11-14 06:33:35 +0000
committerAndreas Öman <andreas@lonelycoder.com>2007-11-14 06:33:35 +0000
commitbd59786204ce9f7e3b7f28dd5c6df2643bf423c2 (patch)
tree74bd1a609790e70347f7800b376f8e59d9be4843 /libavformat
parentbd548b99aad3b067619db4d2a8fe67933b59197a (diff)
remove unnecessary -1 from snprintf len
Originally committed as revision 11009 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 540adfc197..d6d5b2c4e3 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -585,7 +585,7 @@ static int mp3_write_header(struct AVFormatContext *s)
char yeartxt[10];
if(s->track)
- snprintf(tracktxt, sizeof(tracktxt) - 1, "%d", s->track);
+ snprintf(tracktxt, sizeof(tracktxt) , "%d", s->track);
if(s->year)
snprintf( yeartxt, sizeof(yeartxt) , "%d", s->year );