# HG changeset patch # User mru # Date 1227055048 0 # Node ID 49648dd185cf84e9a440ddfe32eecc5f65eb53fb # Parent 40d792395c635a57ee6eb0cdd3c9fb8716ff1ee3 SH4: do not mix code and declarations diff -r 40d792395c63 -r 49648dd185cf sh4/dsputil_sh4.c --- a/sh4/dsputil_sh4.c Wed Nov 19 00:37:24 2008 +0000 +++ b/sh4/dsputil_sh4.c Wed Nov 19 00:37:28 2008 +0000 @@ -66,9 +66,9 @@ extern void idct_sh4(DCTELEM *block); static void idct_put(uint8_t *dest, int line_size, DCTELEM *block) { - idct_sh4(block); int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; + idct_sh4(block); for(i=0;i<8;i++) { dest[0] = cm[block[0]]; dest[1] = cm[block[1]]; @@ -84,9 +84,9 @@ } static void idct_add(uint8_t *dest, int line_size, DCTELEM *block) { - idct_sh4(block); int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; + idct_sh4(block); for(i=0;i<8;i++) { dest[0] = cm[dest[0]+block[0]]; dest[1] = cm[dest[1]+block[1]];