From 305492c3757f5335c00bb6d4b907742c083889a2 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Mon, 20 Apr 2015 09:50:59 -0700 Subject: Move declaration before statement Change-Id: Ib64786fcc0d6dc11c4e66f5b7f3e93b2a4fcb664 --- vp9/encoder/vp9_avg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp9/encoder/vp9_avg.c b/vp9/encoder/vp9_avg.c index e26a03cef..95b13bb77 100644 --- a/vp9/encoder/vp9_avg.c +++ b/vp9/encoder/vp9_avg.c @@ -193,10 +193,10 @@ unsigned int vp9_highbd_avg_4x4_c(const uint8_t *s8, int p) { 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]); -- cgit v1.2.3