Commit 45dc4669 authored by aurel's avatar aurel

simplify usage of dstlen as it is not a parameter anymore

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16956 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 54ddabf6
...@@ -170,16 +170,14 @@ static unsigned int id3v2_get_size(ByteIOContext *s, int len) ...@@ -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) static void id3v2_read_ttag(AVFormatContext *s, int taglen, const char *key)
{ {
char *q, dst[512]; char *q, dst[512];
int len, dstlen = sizeof(dst); int len, dstlen = sizeof(dst) - 1;
unsigned genre; unsigned genre;
if(dstlen > 0)
dst[0]= 0; dst[0]= 0;
if(taglen < 1) if(taglen < 1)
return; return;
taglen--; /* account for encoding type byte */ taglen--; /* account for encoding type byte */
dstlen--; /* Leave space for zero terminator */
switch(get_byte(s->pb)) { /* encoding type */ switch(get_byte(s->pb)) { /* encoding type */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment