openjp2/j2k: Report error if all wanted components are not decoded. 1164/head
authorSebastian Rasmussen <sebras@gmail.com>
Wed, 31 Oct 2018 19:22:11 +0000 (20:22 +0100)
committerSebastian Rasmussen <sebras@gmail.com>
Thu, 21 Feb 2019 08:48:02 +0000 (16:48 +0800)
commitb2751967ecabf8d8856e85ab91e25d4f235e2eb3
treeb9c812dd14bb3f5347f9525d5a2252ae558ba15a
parent51f097e6d5754ddae93e716276fe8176b44ec548
openjp2/j2k: Report error if all wanted components are not decoded.

Previously the caller had to check whether each component data had
been decoded. This means duplicating the checking in every user of
openjpeg which is unnecessary. If the caller wantes to decode all
or a set of, or a specific component then openjpeg ought to error
out if it was unable to do so.

Fixes #1158.
src/bin/jp2/opj_decompress.c
src/lib/openjp2/j2k.c