Applied changes to jp3d_to_volume.c that didn't pass in previous revision (rev545)

This commit is contained in:
Francois-Olivier Devaux 2010-02-19 13:37:27 +00:00
parent 372eab810b
commit 1027d05064
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ int get_file_format(char *filename) {
static const char *extension[] = {"pgx", "bin", "j3d", "jp3d", "j2k", "img"};
static const int format[] = { PGX_DFMT, BIN_DFMT, J3D_CFMT, J3D_CFMT, J2K_CFMT, IMG_DFMT};
char * ext = strrchr(filename, '.') + 1;
for(i = 0; i < sizeof(format); i++) {
for(i = 0; i < sizeof(format) / sizeof(format[0]); i++) {
if(strnicmp(ext, extension[i], 3) == 0) {
return format[i];
}