FFmpeg/libavcodec
Mark Thompson f4882ef9e5
cbs_av1: Reject thirty-two zero bits in uvlc code
The spec allows at least thirty-two zero bits followed by a one to mean
2^32-1, with no constraint on the number of zeroes.  The libaom
reference decoder does not match this, instead reading thirty-two zeroes
but not the following one to mean 2^32-1.  These two interpretations are
incompatible and other implementations may follow one or the other.
Therefore reject thirty-two zeroes because the intended behaviour is not
clear.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7110a36ba07f85ca2996d3b99898a4819e72d9bb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-07-21 20:05:28 +02:00
..
2023-12-21 22:44:01 +01:00
2021-06-18 20:53:56 +02:00
2022-09-25 13:51:42 +02:00
2022-04-06 20:27:35 +02:00
2024-06-15 23:32:48 +02:00
2024-06-15 23:32:47 +02:00
2022-09-25 13:51:46 +02:00
2024-06-15 23:32:43 +02:00
2024-06-15 23:32:58 +02:00
2022-04-06 20:27:35 +02:00
2021-04-03 13:29:30 +02:00
2023-04-07 23:40:40 +02:00
2021-04-01 11:38:44 +02:00
2021-10-05 23:19:39 +02:00
2023-04-07 23:40:39 +02:00
2023-12-21 22:43:44 +01:00
2021-04-02 21:40:54 +02:00
2024-06-15 23:32:49 +02:00
2024-06-15 23:32:57 +02:00
2021-09-21 23:20:29 -03:00
2022-09-25 13:51:43 +02:00