ref: a309742a5fe53c4f090ad6aec1536c9bb70ef4de
parent: e755a283ddfab1bb7577ba13e75aab415a2cc9aa
parent: f76158131d6480ef179f280d5bd9f3726e403af8
author: Alex Converse <[email protected]>
date: Tue May 3 15:11:17 EDT 2016
Merge "Fix unsigned overflows in temporal filter."
--- a/vp9/encoder/vp9_temporal_filter.c
+++ b/vp9/encoder/vp9_temporal_filter.c
@@ -143,8 +143,8 @@
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) {
@@ -211,8 +211,8 @@
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) {