This commit is contained in:
Jamaika1 2020-12-28 21:49:15 +01:00 committed by GitHub
parent 9a7bcf4430
commit eefd9b5e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1732,8 +1732,8 @@ static int parse_cmdline_encoder(int argc, char **argv,
}
}
if ((parameters->decod_format == RAW_DFMT || parameters->decod_format == RAWL_DFMT)
&& (raw_cp->rawWidth == 0)) {
if ((parameters->decod_format == RAW_DFMT && raw_cp->rawWidth == 0)
|| (parameters->decod_format == RAWL_DFMT && raw_cp->rawWidth == 0)) {
fprintf(stderr, "[ERROR] invalid raw/yuv image parameters\n");
fprintf(stderr, "Please use the Format option -F:\n");
fprintf(stderr,