summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-11-28 12:04:40 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-11-28 12:04:40 +0000
commitcab86a0deb03b223bb21dcafb3fd7632714f0e6f (patch)
treeaff406eb69fcbc6fdd6bc338617c2777bb8ca943 /src/bin
parentbe3a1da14a2f81129c59d40b8b69425b670d1575 (diff)
[trunk] jp3d: fix command line parsing for subsampling
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/jp3d/opj_jp3d_compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/jp3d/opj_jp3d_compress.c b/src/bin/jp3d/opj_jp3d_compress.c
index 066de350..b774e149 100755
--- a/src/bin/jp3d/opj_jp3d_compress.c
+++ b/src/bin/jp3d/opj_jp3d_compress.c
@@ -488,7 +488,7 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters)
case 's': /* subsampling factor */
{
- if (sscanf(opj_optarg, "%d,%d,%d", &parameters->subsampling_dx, &parameters->subsampling_dy, &parameters->subsampling_dz) != 2) {
+ if (sscanf(opj_optarg, "%d,%d,%d", &parameters->subsampling_dx, &parameters->subsampling_dy, &parameters->subsampling_dz) != 3) {
fprintf(stdout, "[ERROR] '-s' sub-sampling argument error ! [-s dx,dy,dz]\n");
return 1;
}