aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2024-11-28 22:17:28 +0000
committerNuo Mi <nuomi2021@gmail.com>2024-12-03 10:22:55 +0800
commit56419fd096c55c646fc56d8dde522e32079c907c (patch)
tree6650ecfa67f8addc5bdbaba72595231cb4058cd9
parent499896ca2f3665d936f5892dee4a9d37b03fbea2 (diff)
downloadffmpeg-56419fd096c55c646fc56d8dde522e32079c907c.tar.gz
lavc/vvc: Fix overflow in MVD derivation
H.266 (V3) section 7.4.12.8: "The value of lMvd[ compIdx ] shall be in the range of −2^{17} to 2^{17} − 1, inclusive." Signed-off-by: Frank Plowman <post@frankplowman.com>
-rw-r--r--libavcodec/vvc/ctu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c
index b2c0babe9d..126748360c 100644
--- a/libavcodec/vvc/ctu.c
+++ b/libavcodec/vvc/ctu.c
@@ -1493,7 +1493,7 @@ static int hls_merge_data(VVCLocalContext *lc)
static void hls_mvd_coding(VVCLocalContext *lc, Mv* mvd)
{
- int16_t mv[2];
+ int32_t mv[2];
for (int i = 0; i < 2; i++) {
mv[i] = ff_vvc_abs_mvd_greater0_flag(lc);