Commit 0474b210 authored by Yaowu Xu's avatar Yaowu Xu

Add an explicit conversion to int

To avoid unsigned int overflow

Change-Id: Ie070fea50b4b6c4a0e80c61371a2366dd79ed570
parent 6b3f0db0
......@@ -175,8 +175,8 @@ void av1_highbd_temporal_filter_apply_c(
for (idy = -1; idy <= 1; ++idy) {
for (idx = -1; idx <= 1; ++idx) {
int row = i + idy;
int col = j + idx;
int row = (int)i + idy;
int col = (int)j + idx;
if (row >= 0 && row < (int)block_height && col >= 0 &&
col < (int)block_width) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment