Repository navigation
Commit 654da7f
fix(dv): P5 colr override fills range gap instead of forcing limited
The Profile 5 color-signaling override forced AVCOL_RANGE_MPEG (limited)
unconditionally on every P5 source. A P5 MP4 that already signals a range
(including a legal full-range source) was stomped down to limited and
shifted colours.
Primaries / transfer / matrix stay forced: P5 is spec-fixed to IPT-PQ-c2
(BT.2020 / PQ / BT.2020-NCL) with no legal alternate, so forcing them is a
repair, not an overwrite. Range is the only field with a legitimate
alternate, so it now passes a present source signal through and only fills
AVCOL_RANGE_MPEG when the source leaves it AVCOL_RANGE_UNSPECIFIED.
The #19 repro (all color fields unspecified) still resolves to the full
canonical P5 tuple, so no regression there.
Refs #20
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 10f002a commit 654da7f
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
620 | 630 | | |
621 | 631 | | |
622 | 632 | | |
623 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
624 | 636 | | |
625 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
626 | 640 | | |
627 | 641 | | |
628 | 642 | | |
| |||
0 commit comments