diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-11-28 12:04:40 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-11-28 12:04:40 +0000 |
| commit | cab86a0deb03b223bb21dcafb3fd7632714f0e6f (patch) | |
| tree | aff406eb69fcbc6fdd6bc338617c2777bb8ca943 /src/bin | |
| parent | be3a1da14a2f81129c59d40b8b69425b670d1575 (diff) | |
[trunk] jp3d: fix command line parsing for subsampling
Diffstat (limited to 'src/bin')
| -rwxr-xr-x | src/bin/jp3d/opj_jp3d_compress.c | 2 |
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", ¶meters->subsampling_dx, ¶meters->subsampling_dy, ¶meters->subsampling_dz) != 2) {
+ if (sscanf(opj_optarg, "%d,%d,%d", ¶meters->subsampling_dx, ¶meters->subsampling_dy, ¶meters->subsampling_dz) != 3) {
fprintf(stdout, "[ERROR] '-s' sub-sampling argument error ! [-s dx,dy,dz]\n");
return 1;
}
|
