diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-02-19 13:37:27 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-02-19 13:37:27 +0000 |
| commit | 1027d050641bc1367b8ed5b3b81b437eec5240e2 (patch) | |
| tree | 45640b8071e6e43b0a9910143c3c27fc3f0bd06d /codec | |
| parent | 372eab810b2b19dce5641c38d3c4a3c779c8bac6 (diff) | |
Applied changes to jp3d_to_volume.c that didn't pass in previous revision (rev545)
Diffstat (limited to 'codec')
| -rwxr-xr-x | codec/jp3d_to_volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codec/jp3d_to_volume.c b/codec/jp3d_to_volume.c index caa275bf..4086b20d 100755 --- a/codec/jp3d_to_volume.c +++ b/codec/jp3d_to_volume.c @@ -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];
}
|
