aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/clearvideo.c
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2024-01-20 14:51:04 +0000
committerJames Almer <jamrial@gmail.com>2024-01-23 11:17:05 -0300
commit8157b5d4051d52d9bcabda9dcd5f012d070cba71 (patch)
tree1e49de45254653b56b232e1807a6527495a89177 /libavcodec/clearvideo.c
parent2d712314ecb64e562243986401522d2c8ffc00cc (diff)
downloadffmpeg-8157b5d4051d52d9bcabda9dcd5f012d070cba71.tar.gz
lavc/vvc: Remove left shifts of negative values
VVC specifies << as arithmetic left shift, i.e. x << y is equivalent to x * pow2(y). C's << on the other hand has UB if x is negative. This patch removes all UB resulting from this, mostly by replacing x << y with x * (1 << y), but there are also a couple places where the OOP was changed instead. Signed-off-by: Frank Plowman <post@frankplowman.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/clearvideo.c')
0 files changed, 0 insertions, 0 deletions