On 1/20/2024 11:51 AM, [email protected] wrote:
From: Frank Plowman <[email protected]>
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 <[email protected]>
---
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
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".