test_tile_encoder: fix checks on argc

This commit is contained in:
Even Rouault 2017-08-21 23:06:53 +02:00
parent c97666f72b
commit 8180eeace1
1 changed files with 2 additions and 2 deletions

View File

@ -128,12 +128,12 @@ int main(int argc, char *argv[])
comp_prec = atoi(argv[6]); comp_prec = atoi(argv[6]);
irreversible = atoi(argv[7]); irreversible = atoi(argv[7]);
output_file = argv[8]; output_file = argv[8];
if (argc >= 12) { if (argc >= 11) {
quality_loss = 0; quality_loss = 0;
cblockw_init = atoi(argv[9]); cblockw_init = atoi(argv[9]);
cblockh_init = atoi(argv[10]); cblockh_init = atoi(argv[10]);
} }
if (argc >= 13) { if (argc >= 12) {
numresolution = atoi(argv[11]); numresolution = atoi(argv[11]);
} }
if (argc >= 14) { if (argc >= 14) {