From 6d376346ebdcbe1ad8b265b2eb7d0de59d24bb1a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 11 May 2012 17:50:28 +0200 Subject: [PATCH] Allow decoding of j2k images with bpp<8 and 8comps[3].prec && + case 4: match = match && descriptor.comp[3].depth_minus1 + 1 >= image->comps[3].prec && 1 << descriptor.log2_chroma_w == image->comps[3].dx && 1 << descriptor.log2_chroma_h == image->comps[3].dy; - case 3: match = match && descriptor.comp[2].depth_minus1 + 1 == image->comps[2].prec && + case 3: match = match && descriptor.comp[2].depth_minus1 + 1 >= image->comps[2].prec && 1 << descriptor.log2_chroma_w == image->comps[2].dx && 1 << descriptor.log2_chroma_h == image->comps[2].dy; - case 2: match = match && descriptor.comp[1].depth_minus1 + 1 == image->comps[1].prec && + case 2: match = match && descriptor.comp[1].depth_minus1 + 1 >= image->comps[1].prec && 1 << descriptor.log2_chroma_w == image->comps[1].dx && 1 << descriptor.log2_chroma_h == image->comps[1].dy; - case 1: match = match && descriptor.comp[0].depth_minus1 + 1 == image->comps[0].prec && + case 1: match = match && descriptor.comp[0].depth_minus1 + 1 >= image->comps[0].prec && 1 == image->comps[0].dx && 1 == image->comps[0].dy; default: