diff options
Diffstat (limited to 'src/bin/jp2/convertpng.c')
| -rw-r--r-- | src/bin/jp2/convertpng.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/jp2/convertpng.c b/src/bin/jp2/convertpng.c index cd074001..b8378d35 100644 --- a/src/bin/jp2/convertpng.c +++ b/src/bin/jp2/convertpng.c @@ -193,9 +193,8 @@ static opj_image_t * pngtoimage_internal(opj_cparameters_t * params, /* Create image */ memset(cmptparm, 0, sizeof(cmptparm)); for (i = 0; i < nr_comp; ++i) { - cmptparm[i].prec = (OPJ_UINT32)bit_depth; /* bits_per_pixel: 8 or 16 */ - cmptparm[i].bpp = (OPJ_UINT32)bit_depth; + cmptparm[i].prec = (OPJ_UINT32)bit_depth; cmptparm[i].sgnd = 0; cmptparm[i].dx = (OPJ_UINT32)params->subsampling_dx; cmptparm[i].dy = (OPJ_UINT32)params->subsampling_dy; |
