diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-20 22:31:43 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-21 04:57:45 +0400 |
commit | b1bcddfb6d06535df59bd212904c725850b36ece (patch) | |
tree | 2aa33fa0b563d1439191e0fa94ad8eb74f6e119a /libpostproc/postprocess_template.c | |
parent | 37c0dc626d2f8254ef623d987eb5077f9120755f (diff) |
postproc: altivec: fix trivial cases of mixed declarations and code
This moves declarations without initialisers or with constant
initialisers to the start of a block, and adds do {} while(0)
around some macros, thus allowing declarations within them.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libpostproc/postprocess_template.c')
-rw-r--r-- | libpostproc/postprocess_template.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index 471b2524d7..dd4c7a0a48 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -3518,9 +3518,10 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[ else if(mode & H_DEBLOCK){ #if HAVE_ALTIVEC DECLARE_ALIGNED(16, unsigned char, tempBlock)[272]; + int t; transpose_16x8_char_toPackedAlign_altivec(tempBlock, dstBlock - (4 + 1), stride); - const int t=vertClassify_altivec(tempBlock-48, 16, &c); + t = vertClassify_altivec(tempBlock-48, 16, &c); if(t==1) { doVertLowPass_altivec(tempBlock-48, 16, &c); transpose_8x16_char_fromPackedAlign_altivec(dstBlock - (4 + 1), tempBlock, stride); |