comparison mp3.c @ 3278:1de87c1b6a12 libavformat

Remove unnecessary parentheses from return calls.
author diego
date Tue, 06 May 2008 09:16:36 +0000
parents 6eaceb561ae9
children 6f61c3b36632
comparison
equal deleted inserted replaced
3277:ce8070648576 3278:1de87c1b6a12
158 }; 158 };
159 159
160 /* buf must be ID3v2_HEADER_SIZE byte long */ 160 /* buf must be ID3v2_HEADER_SIZE byte long */
161 static int id3v2_match(const uint8_t *buf) 161 static int id3v2_match(const uint8_t *buf)
162 { 162 {
163 return (buf[0] == 'I' && 163 return buf[0] == 'I' &&
164 buf[1] == 'D' && 164 buf[1] == 'D' &&
165 buf[2] == '3' && 165 buf[2] == '3' &&
166 buf[3] != 0xff && 166 buf[3] != 0xff &&
167 buf[4] != 0xff && 167 buf[4] != 0xff &&
168 (buf[6] & 0x80) == 0 && 168 (buf[6] & 0x80) == 0 &&
169 (buf[7] & 0x80) == 0 && 169 (buf[7] & 0x80) == 0 &&
170 (buf[8] & 0x80) == 0 && 170 (buf[8] & 0x80) == 0 &&
171 (buf[9] & 0x80) == 0); 171 (buf[9] & 0x80) == 0;
172 } 172 }
173 173
174 static unsigned int id3v2_get_size(ByteIOContext *s, int len) 174 static unsigned int id3v2_get_size(ByteIOContext *s, int len)
175 { 175 {
176 int v=0; 176 int v=0;