ref: 305492c3757f5335c00bb6d4b907742c083889a2
parent: 2e36149ccd4427feac725ca222f7ab5d8c38e0c7
author: Yaowu Xu <[email protected]>
date: Mon Apr 20 05:50:59 EDT 2015
Move declaration before statement Change-Id: Ib64786fcc0d6dc11c4e66f5b7f3e93b2a4fcb664
--- a/vp9/encoder/vp9_avg.c
+++ b/vp9/encoder/vp9_avg.c
@@ -193,10 +193,10 @@
void vp9_highbd_minmax_8x8_c(const uint8_t *s8, int p, const uint8_t *d8,
int dp, int *min, int *max) {
int i, j;
- *min = 255;
- *max = 0;
const uint16_t* s = CONVERT_TO_SHORTPTR(s8);
const uint16_t* d = CONVERT_TO_SHORTPTR(d8);
+ *min = 255;
+ *max = 0;
for (i = 0; i < 8; ++i, s += p, d += dp) {
for (j = 0; j < 8; ++j) {
int diff = abs(s[j]-d[j]);