diff options
author | Yaowu Xu <yaowu@google.com> | 2015-04-20 09:50:59 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-04-20 09:50:59 -0700 |
commit | 305492c3757f5335c00bb6d4b907742c083889a2 (patch) | |
tree | 455843f9cc13634276d877327e5c6b9af8789052 | |
parent | 2e36149ccd4427feac725ca222f7ab5d8c38e0c7 (diff) | |
download | libvpx-305492c3757f5335c00bb6d4b907742c083889a2.tar libvpx-305492c3757f5335c00bb6d4b907742c083889a2.tar.gz libvpx-305492c3757f5335c00bb6d4b907742c083889a2.tar.bz2 libvpx-305492c3757f5335c00bb6d4b907742c083889a2.zip |
Move declaration before statement
Change-Id: Ib64786fcc0d6dc11c4e66f5b7f3e93b2a4fcb664
-rw-r--r-- | vp9/encoder/vp9_avg.c | 4 |
1 files 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]); |