Export to GitHub

openjpeg - issue #456

Incorrect code in ../bin/jp2/convert.c, function rawtoimage_common(...)


Posted on Dec 22, 2014 by Grumpy Bird

if (numcomps == 0) { color_space = OPJ_CLRSPC_GRAY; } else if ((numcomps >= 3) && (parameters->tcp_mct == 0)) { color_space = OPJ_CLRSPC_SYCC; } else if ((numcomps >= 3) && (parameters->tcp_mct != 2)) { color_space = OPJ_CLRSPC_SRGB; } else { color_space = OPJ_CLRSPC_UNKNOWN; } It seems, the first line should be if (numcomps == 1) {...} (GRAY color space, 1 component)

Comment #1

Posted on Dec 22, 2014 by Quick Lion

This issue was closed by revision r2983.

Status: Fixed

Labels:
Type-Defect Priority-Medium