Lines Matching defs:buf
2088 lenOfId3v2Tag(unsigned char const* buf)
2090 unsigned int b0 = buf[0] & 127;
2091 unsigned int b1 = buf[1] & 127;
2092 unsigned int b2 = buf[2] & 127;
2093 unsigned int b3 = buf[3] & 127;
2222 unsigned char buf[100];
2239 if (fread(buf, 1, len, fd) != len)
2241 while (buf[0] == 'I' && buf[1] == 'D' && buf[2] == '3') {
2243 if (fread(&buf[4], 1, len, fd) != len)
2245 len = lenOfId3v2Tag(&buf[6]);
2250 memcpy(global.in_id3v2_tag, buf, 10);
2264 if (fread(&buf, 1, len, fd) != len)
2267 aid_header = check_aid(buf);
2269 if (fread(&buf, 1, 2, fd) != 2)
2271 aid_header = (unsigned char) buf[0] + 256 * (unsigned char) buf[1];
2279 if (fread(&buf, 1, len, fd) != len)
2283 while (!is_syncword_mp123(buf)) {
2286 buf[i] = buf[i + 1];
2287 if (fread(buf + len - 1, 1, 1, fd) != 1)
2291 if ((buf[2] & 0xf0) == 0) {
2304 ret = hip_decode1_headersB(global.hip, buf, len, pcm_l, pcm_r, mp3data, enc_delay, enc_padding);
2310 len = fread(buf, 1, sizeof(buf), fd);
2311 if (len != sizeof(buf))
2314 hip_decode1_headersB(global.hip, buf, len, pcm_l, pcm_r, mp3data, enc_delay,
2367 unsigned char buf[1024];
2370 ret = hip_decode1_headers(global.hip, buf, len, pcm_l, pcm_r, mp3data);
2377 len = fread(buf, 1, 1024, fd);
2380 ret = hip_decode1_headers(global.hip, buf, len, pcm_l, pcm_r, mp3data);
2387 ret = hip_decode1_headers(global.hip, buf, len, pcm_l, pcm_r, mp3data);