aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vvc/ctu.c
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2024-08-24 10:28:38 +0100
committerNuo Mi <nuomi2021@gmail.com>2024-09-03 20:57:52 +0800
commit54291f43837b23d9baa530652d2f1aa8a22db28e (patch)
treecbe68f694de22cbb11415f3ef5c1ec41f313449a /libavcodec/vvc/ctu.c
parentae9cf903e8232113e629825f8fffb22921fc6624 (diff)
downloadffmpeg-54291f43837b23d9baa530652d2f1aa8a22db28e.tar.gz
lavc/vvc: Fix assertion bound on qPy_{a,b}
Signed-off-by: Frank Plowman <post@frankplowman.com>
Diffstat (limited to 'libavcodec/vvc/ctu.c')
-rw-r--r--libavcodec/vvc/ctu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c
index 06b57215a4..b33ad576cf 100644
--- a/libavcodec/vvc/ctu.c
+++ b/libavcodec/vvc/ctu.c
@@ -115,8 +115,8 @@ static int get_qp_y_pred(const VVCLocalContext *lc)
else
qPy_a = fc->tab.qp[LUMA][(x_cb - 1) + y_cb * min_cb_width];
- av_assert2(qPy_a >= -fc->ps.sps->qp_bd_offset && qPy_a < 63);
- av_assert2(qPy_b >= -fc->ps.sps->qp_bd_offset && qPy_b < 63);
+ av_assert2(qPy_a >= -fc->ps.sps->qp_bd_offset && qPy_a <= 63);
+ av_assert2(qPy_b >= -fc->ps.sps->qp_bd_offset && qPy_b <= 63);
return (qPy_a + qPy_b + 1) >> 1;
}