fix(dash): expand CICP enums to full H.273 range

Video.Range.from_cicp() crashed with ValueError on any CICP primaries, transfer, or matrix value outside the small subset previously enumerated (e.g. TransferCharacteristics=4 / BT.470M gamma 2.2 seen in SCTE-stitched live MPDs). Extend the three inner enums to cover all documented ITU-T H.273 / ISO/IEC 23001-8 values and fall back to Unspecified on unknown codes so SDR content no longer fails to parse.

Source: https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/libavutil/pixfmt.h (authoritative implementation of ITU-T H.273 / ISO/IEC 23001-8 tables). ITU spec itself: https://www.itu.int/rec/T-REC-H.273
This commit is contained in:
imSp4rky
2026-04-24 11:50:27 -06:00
parent 776be128a7
commit b1158099d1
2 changed files with 31 additions and 4 deletions

2
uv.lock generated
View File

@@ -1651,7 +1651,7 @@ wheels = [
[[package]]
name = "unshackle"
version = "4.0.0"
version = "5.0.0"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },