trunk/src/lib/util/chdcd.c
| r20103 | r20104 | |
| 164 | 164 | if (offset < 4) |
| 165 | 165 | { |
| 166 | 166 | osd_close(file); |
| 167 | | printf("ERROR: unexpected offset %lu (%s)\n", actual, filename); |
| 167 | printf("ERROR: unexpected RIFF offset %lu (%s)\n", actual, filename); |
| 168 | 168 | return 0; |
| 169 | 169 | } |
| 170 | 170 | if (memcmp(&buf[0], "RIFF", 4) != 0) |
| r20103 | r20104 | |
| 180 | 180 | if (offset < 8) |
| 181 | 181 | { |
| 182 | 182 | osd_close(file); |
| 183 | | printf("ERROR: unexpected offset %lu (%s)\n", actual, filename); |
| 183 | printf("ERROR: unexpected size offset %lu (%s)\n", actual, filename); |
| 184 | 184 | return 0; |
| 185 | 185 | } |
| 186 | 186 | filesize = LITTLE_ENDIANIZE_INT32(filesize); |
| r20103 | r20104 | |
| 191 | 191 | if (offset < 12) |
| 192 | 192 | { |
| 193 | 193 | osd_close(file); |
| 194 | | printf("ERROR: unexpected offset %lu (%s)\n", actual, filename); |
| 194 | printf("ERROR: unexpected WAVE offset %lu (%s)\n", actual, filename); |
| 195 | 195 | return 0; |
| 196 | 196 | } |
| 197 | 197 | if (memcmp(&buf[0], "WAVE", 4) != 0) |