#ifdef TEST
#undef printf
-main(void){
+int main(void){
uint8_t buf[1999];
int i;
int p[4][3]={{AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04},
ctx = av_crc_get_table(p[i][0]);
printf("crc %08X =%X\n", p[i][1], av_crc(ctx, 0, buf, sizeof(buf)));
}
+ return 0;
}
#endif
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
};
-main(void){
+int main(void){
int64_t a,b;
for(a=7; a<256*256*256; a+=13215){
assert(av_i2int(av_div_i(ai,bi)) == a/b);
}
}
+ return 0;
}
#endif
#ifdef TEST
#include <stdio.h>
#undef printf
-main(void){
+int main(void){
uint64_t md5val;
int i;
uint8_t in[1000];
av_md5_sum( (uint8_t*)&md5val, in, 65); printf("%"PRId64"\n", md5val);
for(i=0; i<1000; i++) in[i]= i % 127;
av_md5_sum( (uint8_t*)&md5val, in, 999); printf("%"PRId64"\n", md5val);
+
+ return 0;
}
#endif