diff options
author | Frank Plowman <post@frankplowman.com> | 2024-01-20 14:51:04 +0000 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-01-23 11:17:05 -0300 |
commit | 8157b5d4051d52d9bcabda9dcd5f012d070cba71 (patch) | |
tree | 1e49de45254653b56b232e1807a6527495a89177 /libavcodec/mediacodec_wrapper.h | |
parent | 2d712314ecb64e562243986401522d2c8ffc00cc (diff) | |
download | ffmpeg-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/mediacodec_wrapper.h')
0 files changed, 0 insertions, 0 deletions