*/
#define DCRAW_VERSION "9.17"
+#define LOCALTIME
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
void CLASS sony_decrypt (unsigned *data, int len, int start, int key)
{
- static unsigned pad[128], p;
+ static unsigned pad[128], p = 0;
if (start) {
for (p=0; p < 4; p++)
for (p=0; p < 127; p++)
pad[p] = htonl(pad[p]);
}
- while (len--)
- *data++ ^= pad[p++ & 127] = pad[(p+1) & 127] ^ pad[(p+65) & 127];
+ while (len--) {
+ *data++ ^= pad[p & 127] = pad[(p+1) & 127] ^ pad[(p+65) & 127];
+ p++;
+ }
}
void CLASS sony_load_raw()