History

lavc/vvc: Fix assertion bound on qPy_{a,b}

Frank Plowman committed 2 years ago

Commit 54291f41 parent ae9cf901 file · +2 −2Browse files

Unified · Split

libavcodec/vvc/ctu.c+2−2
@@ -115,8 +115,8 @@ static int get_qp_y_pred(const VVCLocalContext *lc) · 114 unmodified lines
115 else115 else
116 qPy_a = fc->tab.qp[LUMA][(x_cb - 1) + y_cb * min_cb_width];116 qPy_a = fc->tab.qp[LUMA][(x_cb - 1) + y_cb * min_cb_width];
117 117
118 av_assert2(qPy_a >= -fc->ps.sps->qp_bd_offset && qPy_a < 63);118 av_assert2(qPy_a >= -fc->ps.sps->qp_bd_offset && qPy_a <= 63);
119 av_assert2(qPy_b >= -fc->ps.sps->qp_bd_offset && qPy_b < 63);119 av_assert2(qPy_b >= -fc->ps.sps->qp_bd_offset && qPy_b <= 63);
120 120
121 return (qPy_a + qPy_b + 1) >> 1;121 return (qPy_a + qPy_b + 1) >> 1;
122}122}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t