dav1d: treat RGB formats separately
authorTristan Matthews <tmatth@videolan.org>
Sat, 31 Aug 2024 16:58:27 +0000 (12:58 -0400)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
commit9fec7cebd188a4da9c34e53fb6e0a49edd8fae58
treed2611990ae39e6ca7d4ae2dff3cb8a3fab860f36
parenta8b16af20d496153709923c523f6216f92bc7dca
dav1d: treat RGB formats separately

This avoids incorrectly matching as GBR.
Fixes #28763 which was missing checks for the matrix and primaries.

This also replaces the loop with a constant-time lookup.

(cherry picked from commit ece317a245e8c32a5efc11d5e82dcd8a28a2f10b)

Gbp-Pq: Name 0027-dav1d-treat-RGB-formats-separately.patch
modules/codec/dav1d.c