Skip to content

Commit 4a1ebdf

Browse files
committed
gpujpeg_reader: do not override comp_count=4
As the comp_count is the property of compressed stream, do not override it to 3.
1 parent 5308628 commit 4a1ebdf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/gpujpeg_reader.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,6 @@ adjust_pixel_format(struct gpujpeg_parameters * param, struct gpujpeg_image_para
14541454
}
14551455

14561456
if (param_image->pixel_format == GPUJPEG_PIXFMT_STD && param_image->color_space != GPUJPEG_RGB) {
1457-
if ( param->comp_count == 4 ) {
1458-
param->comp_count = 3;
1459-
}
1460-
GPUJPEG_ASSERT(param->comp_count == 3);
14611457
struct gpujpeg_parameters tmp;
14621458
gpujpeg_parameters_chroma_subsampling(&tmp, GPUJPEG_SUBSAMPLING_420);
14631459
if (sampling_factor_compare(3, param->sampling_factor, tmp.sampling_factor)) {

0 commit comments

Comments
 (0)