Validate the num_channels field of the 'pixi' box#642
Validate the num_channels field of the 'pixi' box#642wantehchang wants to merge 1 commit intoAOMediaCodec:mainfrom
Conversation
Validate the num_channels field of the 'pixi' box against the av1C property.
|
We talked about this elsewhere, but just as a reminder for myself/others: I'm waiting on this one until I can ensure that the monochrome check is safe for really old AVIFs. (I can't remember how pixi was written in early versions of libavif before AV1 codecs could properly write monochrome.) |
|
Joe: I checked the relevant code in src/write.c. In v0.3.5, the code is: In the current trunk, the code is: So libavif has been setting num_channels to 1 in the 'pixi' box for the alpha auxiliary image for a long time. I am requesting a sample image from Dirk Farin to see how libheif handles this. |
|
libheif behaves in the same way. Even if the encoder needs to save the alpha image in 4:2:0, libheif writes a one channel This is with libheif v1.12.0. Earlier versions of libheif did not write |
Validate the num_channels field of the 'pixi' box against the av1C
property.