From 3bc2280633f27f6ca3db3a0027f3bd4dc0a57502 Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Tue, 29 Dec 2020 08:25:37 +0100 Subject: [PATCH] fix --- src/bin/jp2/opj_compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c index 0555bd64..97714eaf 100644 --- a/src/bin/jp2/opj_compress.c +++ b/src/bin/jp2/opj_compress.c @@ -800,7 +800,7 @@ static int parse_cmdline_encoder(int argc, char **argv, "If subsampling is omitted, 1x1 is assumed for all components\n"); fprintf(stderr, "Example: -i image.raw -o image.j2k -F 512,512,3,8,u@1x1:2x2:2x2\n"); - fprintf(stderr, + fprintf(stderr, " for raw/yuv 512x512 image with 4:2:0 subsampling\n"); fprintf(stderr, "Aborting.\n"); return 1; @@ -1733,7 +1733,7 @@ static int parse_cmdline_encoder(int argc, char **argv, } } - if ((parameters->decod_format == RAW_DFMT || + if ((parameters->decod_format == RAW_DFMT || parameters->decod_format == RAWL_DFMT) && (raw_cp->rawWidth == 0)) { fprintf(stderr, "[ERROR] invalid raw/yuv image parameters\n");