diff options
author | Frank Plowman <post@frankplowman.com> | 2024-08-24 10:28:38 +0100 |
---|---|---|
committer | Nuo Mi <nuomi2021@gmail.com> | 2024-09-03 20:57:52 +0800 |
commit | 54291f43837b23d9baa530652d2f1aa8a22db28e (patch) | |
tree | cbe68f694de22cbb11415f3ef5c1ec41f313449a /libavcodec/vvc/ctu.c | |
parent | ae9cf903e8232113e629825f8fffb22921fc6624 (diff) | |
download | ffmpeg-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.c | 4 |
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; } |