Merge "Fix unsigned overflows in temporal filter."

This commit is contained in:
Alex Converse 2016-05-03 19:11:17 +00:00 коммит произвёл Gerrit Code Review
Родитель e755a283dd f76158131d
Коммит a309742a5f
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -143,8 +143,8 @@ void vp9_temporal_filter_apply_c(uint8_t *frame1,
for (idy = -1; idy <= 1; ++idy) { for (idy = -1; idy <= 1; ++idy) {
for (idx = -1; idx <= 1; ++idx) { for (idx = -1; idx <= 1; ++idx) {
int row = i + idy; int row = (int)i + idy;
int col = j + idx; int col = (int)j + idx;
if (row >= 0 && row < (int)block_height && if (row >= 0 && row < (int)block_height &&
col >= 0 && col < (int)block_width) { col >= 0 && col < (int)block_width) {
@ -211,8 +211,8 @@ void vp9_highbd_temporal_filter_apply_c(uint8_t *frame1_8,
for (idy = -1; idy <= 1; ++idy) { for (idy = -1; idy <= 1; ++idy) {
for (idx = -1; idx <= 1; ++idx) { for (idx = -1; idx <= 1; ++idx) {
int row = i + idy; int row = (int)i + idy;
int col = j + idx; int col = (int)j + idx;
if (row >= 0 && row < (int)block_height && if (row >= 0 && row < (int)block_height &&
col >= 0 && col < (int)block_width) { col >= 0 && col < (int)block_width) {