Skip to content

Commit 3e30bc6

Browse files
committed
Fix the CICP for BT.709 SDR and BT.2100 HLG
The CICP for BT.709 SDR should be 1/1/1, not 1/1/5. The CICP for BT.2100 HLG should be 9/18/9, not 9/14/9. Corresponds to the following two pull requests for the AV2 spec: AOMediaCodec/av2-spec-internal#617 AOMediaCodec/av2-spec-internal#615
1 parent abb6516 commit 3e30bc6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/obu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,17 +527,17 @@ static avifBool parseAV2ContentInterpretation(avifBits * bits, avifSequenceHeade
527527
// BT.709 SDR
528528
header->colorPrimaries = AVIF_COLOR_PRIMARIES_BT709; // 1
529529
header->transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_BT709; // 1
530-
header->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT470BG; // 5
530+
header->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT709; // 1
531531
} else if (colorDescriptionIdc == 2) {
532532
// BT.2100 PQ
533533
header->colorPrimaries = AVIF_COLOR_PRIMARIES_BT2100; // 9
534534
header->transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_PQ; // 16
535535
header->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT2020_NCL; // 9
536536
} else if (colorDescriptionIdc == 3) {
537537
// BT.2100 HLG
538-
header->colorPrimaries = AVIF_COLOR_PRIMARIES_BT2100; // 9
539-
header->transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_BT2020_10BIT; // 14
540-
header->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT2020_NCL; // 9
538+
header->colorPrimaries = AVIF_COLOR_PRIMARIES_BT2100; // 9
539+
header->transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_HLG; // 18
540+
header->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_BT2020_NCL; // 9
541541
} else if (colorDescriptionIdc == 4) {
542542
// sRGB
543543
header->colorPrimaries = AVIF_COLOR_PRIMARIES_BT709; // 1

0 commit comments

Comments
 (0)