From: Even Rouault Date: Mon, 21 Aug 2017 21:06:53 +0000 (+0200) Subject: test_tile_encoder: fix checks on argc X-Git-Tag: v2.3.0~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8180eeace13ffceef5dd7c3f80be156e36181846;p=openjpeg test_tile_encoder: fix checks on argc --- 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) {