[FFmpeg-cvslog] lavc/vvc: Fix assertion bound on qPy_{a,b}
Frank Plowman
git at videolan.org
Tue Sep 3 15:59:15 EEST 2024
ffmpeg | branch: master | Frank Plowman <post at frankplowman.com> | Sat Aug 24 10:28:38 2024 +0100| [54291f43837b23d9baa530652d2f1aa8a22db28e] | committer: Nuo Mi
lavc/vvc: Fix assertion bound on qPy_{a,b}
Signed-off-by: Frank Plowman <post at frankplowman.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=54291f43837b23d9baa530652d2f1aa8a22db28e
---
libavcodec/vvc/ctu.c | 4 ++--
1 file 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;
}
More information about the ffmpeg-cvslog
mailing list