On 1/20/2024 11:51 AM, p...@frankplowman.com wrote:
From: Frank Plowman <p...@frankplowman.com>
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 <p...@frankplowman.com>
---
libavcodec/vvc/vvc_ctu.c | 4 +--
libavcodec/vvc/vvc_filter.c | 4 +--
libavcodec/vvc/vvc_inter.c | 24 +++++++--------
libavcodec/vvc/vvc_inter_template.c | 4 +--
libavcodec/vvc/vvc_mvs.c | 46 ++++++++++++++---------------
5 files changed, 41 insertions(+), 41 deletions(-)
Applied, thanks.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".