summaryrefslogtreecommitdiff
path: root/tests/test_tile_encoder.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-08-21 23:06:53 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-08-21 23:06:53 +0200
commit8180eeace13ffceef5dd7c3f80be156e36181846 (patch)
tree35190980cdc4319ad4cdd1e3d77ee63af30e14fd /tests/test_tile_encoder.c
parentc97666f72ba26a7ceb64931963b988a6f8f377f9 (diff)
test_tile_encoder: fix checks on argc
Diffstat (limited to 'tests/test_tile_encoder.c')
-rw-r--r--tests/test_tile_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_tile_encoder.c b/tests/test_tile_encoder.c
index 028d38eb..62139621 100644
--- a/tests/test_tile_encoder.c
+++ b/tests/test_tile_encoder.c
@@ -128,12 +128,12 @@ int main(int argc, char *argv[])
comp_prec = atoi(argv[6]);
irreversible = atoi(argv[7]);
output_file = argv[8];
- if (argc >= 12) {
+ if (argc >= 11) {
quality_loss = 0;
cblockw_init = atoi(argv[9]);
cblockh_init = atoi(argv[10]);
}
- if (argc >= 13) {
+ if (argc >= 12) {
numresolution = atoi(argv[11]);
}
if (argc >= 14) {