Changeset 443
- Timestamp:
- 06/24/09 23:22:00 (16 years ago)
- Location:
- libmpc/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/common/crc32.c
r135 r443 51 51 52 52 /* Return the CRC of the bytes buf[0..len-1]. */ 53 unsigned long crc32(unsigned char *buf, int len)53 unsigned long mpc_crc32(unsigned char *buf, int len) 54 54 { 55 55 return update_crc(0xffffffffL, buf, len) ^ 0xffffffffL; -
libmpc/trunk/libmpcdec/streaminfo.c
r431 r443 43 43 #include "mpc_bits_reader.h" 44 44 45 unsigned long crc32(unsigned char *buf, int len);45 unsigned long mpc_crc32(unsigned char *buf, int len); 46 46 47 47 static const char na[] = "n.a."; … … 191 191 192 192 CRC = (mpc_bits_read(&r, 16) << 16) | mpc_bits_read(&r, 16); 193 if (CRC != crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4))193 if (CRC != mpc_crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4)) 194 194 return MPC_STATUS_FILE; 195 195 -
libmpc/trunk/libmpcenc/bitstream.c
r427 r443 29 29 #include "stdio.h" 30 30 31 unsigned long crc32(unsigned char *buf, int len);31 unsigned long mpc_crc32(unsigned char *buf, int len); 32 32 33 33 #define MAX_ENUM 32 … … 207 207 if (addCRC) { 208 208 char tmp[4]; 209 unsigned long CRC32 = crc32((unsigned char *) e->buffer, e->pos);209 unsigned long CRC32 = mpc_crc32((unsigned char *) e->buffer, e->pos); 210 210 tmp[0] = (char) (CRC32 >> 24); 211 211 tmp[1] = (char) (CRC32 >> 16);
Note: See TracChangeset
for help on using the changeset viewer.