Commit 51021541 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Avoid out of range

Change-Id: Ia06a6f2ac6473f10f09df3c0cc9cd45c2b781146
parent de4a693d
...@@ -4614,7 +4614,7 @@ static int find_tx_size_rd_records(MACROBLOCK *x, BLOCK_SIZE bsize, int mi_row, ...@@ -4614,7 +4614,7 @@ static int find_tx_size_rd_records(MACROBLOCK *x, BLOCK_SIZE bsize, int mi_row,
const int16_t *cur_diff_row = diff + (row + i) * diff_stride + col; const int16_t *cur_diff_row = diff + (row + i) * diff_stride + col;
for (int j = 0; j < cur_tx_bw; j++) { for (int j = 0; j < cur_tx_bw; j++) {
hash = hash ^ clip_pixel(cur_diff_row[j] + 128); hash = hash ^ clip_pixel(cur_diff_row[j] + 128);
hash *= 16777619; hash = (uint32_t)((int64_t)hash * 16777619);
} }
} }
......
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