diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-09-02 23:23:03 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-09-05 13:55:04 +0200 |
commit | 213e606752d16f51337e94431962fb5d7749c07e (patch) | |
tree | 0a952a63f2338533101fb978e585c2a4d6ede03d /libavcodec/faanidct.c | |
parent | 096a1d5b46391f65dfd0bee6292e9962f53bd7c8 (diff) | |
download | ffmpeg-213e606752d16f51337e94431962fb5d7749c07e.tar.gz |
Replace av_unused attributes by block structures
This is more portable and avoids warnings with compilers that do not
properly support av_unused.
Diffstat (limited to 'libavcodec/faanidct.c')
-rw-r--r-- | libavcodec/faanidct.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/faanidct.c b/libavcodec/faanidct.c index 5cacfdd2a3..2e9ce9ce1e 100644 --- a/libavcodec/faanidct.c +++ b/libavcodec/faanidct.c @@ -49,7 +49,6 @@ B7*B0/8, B7*B1/8, B7*B2/8, B7*B3/8, B7*B4/8, B7*B5/8, B7*B6/8, B7*B7/8, static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int stride, int x, int y, int type){ int i; - FLOAT av_unused tmp0; FLOAT s04, d04, s17, d17, s26, d26, s53, d53; FLOAT os07, os16, os25, os34; FLOAT od07, od16, od25, od34; @@ -64,9 +63,12 @@ static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int s od25= (s17 - s53)*(2*A4); #if 0 //these 2 are equivalent - tmp0= (d17 + d53)*(2*A2); - od34= d17*( 2*B6) - tmp0; - od16= d53*(-2*B2) + tmp0; + { + FLOAT tmp0; + tmp0 = (d17 + d53) * (2 * A2); + od34 = d17 * (2 * B6) - tmp0; + od16 = d53 * (-2 * B2) + tmp0; + } #else od34= d17*(2*(B6-A2)) - d53*(2*A2); od16= d53*(2*(A2-B2)) + d17*(2*A2); |