diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-09 12:47:52 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-09 12:47:52 +0100 |
commit | 52f6f2f912b3c4b602a9979eb67735d54fea9d7e (patch) | |
tree | 42b08710fba81bdfa9209a6cb9051fa89532c556 /etisnoop/firecode.c | |
parent | 5e1f053678cf01390a47fa6e99dbe155c1442cf5 (diff) | |
download | mmbtools-aux-52f6f2f912b3c4b602a9979eb67735d54fea9d7e.tar.gz mmbtools-aux-52f6f2f912b3c4b602a9979eb67735d54fea9d7e.tar.bz2 mmbtools-aux-52f6f2f912b3c4b602a9979eb67735d54fea9d7e.zip |
etisnoop AAC AU CRC calculation
Diffstat (limited to 'etisnoop/firecode.c')
-rw-r--r-- | etisnoop/firecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etisnoop/firecode.c b/etisnoop/firecode.c index fd13dec..47ee976 100644 --- a/etisnoop/firecode.c +++ b/etisnoop/firecode.c @@ -31,7 +31,7 @@ uint16_t firecode_crc(uint8_t* buf, size_t size) crc = 0x0000; gen_poly = 0x782F; // 0111 1000 0010 1111 (16, 14, 13, 12, 11, 5, 3, 2, 1, 0) - for (int len = 0; len < size; len++) { + for (size_t len = 0; len < size; len++) { for (int i = 0x80; i != 0; i >>= 1) { if ((crc & 0x8000) != 0) { crc = (crc << 1) ^ gen_poly; |