diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-03-21 17:19:30 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-03-24 23:45:07 +0300 |
commit | 3b08d9d932eef09403074d5af31e10d8011e840b (patch) | |
tree | 45f65ef8ab29ab8d979bfd5dff4bd726f62ae97b /libavutil/crc.c | |
parent | 439929859ae0eb9542d3bb8a0c856bd5a1d1ec48 (diff) |
testprogs: K&R formatting cosmetics
Diffstat (limited to 'libavutil/crc.c')
-rw-r--r-- | libavutil/crc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libavutil/crc.c b/libavutil/crc.c index eb22e33ada..ad43c73ec1 100644 --- a/libavutil/crc.c +++ b/libavutil/crc.c @@ -19,8 +19,9 @@ */ #include "config.h" -#include "common.h" + #include "bswap.h" +#include "common.h" #include "crc.h" #if CONFIG_HARDCODED_TABLES @@ -287,7 +288,7 @@ int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size) if (ctx_size >= sizeof(AVCRC) * 1024) for (i = 0; i < 256; i++) for (j = 0; j < 3; j++) - ctx[256 *(j + 1) + i] = + ctx[256 * (j + 1) + i] = (ctx[256 * j + i] >> 8) ^ ctx[ctx[256 * j + i] & 0xFF]; #endif @@ -338,11 +339,12 @@ int main(void) { uint8_t buf[1999]; int i; - int p[5][3] = { { AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04 }, - { AV_CRC_32_IEEE , 0x04C11DB7, 0xC0F5BAE0 }, - { AV_CRC_16_ANSI_LE, 0xA001 , 0xBFD8 }, - { AV_CRC_16_ANSI , 0x8005 , 0x1FBB }, - { AV_CRC_8_ATM , 0x07 , 0xE3 } + int p[5][3] = { + { AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04 }, + { AV_CRC_32_IEEE, 0x04C11DB7, 0xC0F5BAE0 }, + { AV_CRC_16_ANSI_LE, 0xA001, 0xBFD8 }, + { AV_CRC_16_ANSI, 0x8005, 0x1FBB }, + { AV_CRC_8_ATM, 0x07, 0xE3 } }; const AVCRC *ctx; |