forked from AOMediaCodec/libavif
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read.c: Fail if gainmap properties have more than one nclx
The current code simply adopts the first nclx property of the gainmap item. The right behavior seems to be to fail if there are multiple nclx properties (similar to what we do for the color image and the tonemap image). HEIF Section 6.5.5.1: ``` When two ColourInformationBoxes are associated with an image item, one shall have a colour_type value of 'rICC' or 'prof' (providing either restricted or unrestricted ICC profiles respectively) and the other one shall have a colour_type value of 'nclx' with colour_primaries equal to 2 and transfer_characteristics equal to 2 (2 indicating "unspecified", since these data are supplied by the ICC profile instead). ```
- Loading branch information
Showing
1 changed file
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters