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/faandct.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/faandct.c')
-rw-r--r-- | libavcodec/faandct.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c index b1d7a145f4..4053d69db1 100644 --- a/libavcodec/faandct.c +++ b/libavcodec/faandct.c @@ -68,7 +68,6 @@ static av_always_inline void row_fdct(FLOAT temp[64], int16_t *data) FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; FLOAT tmp10, tmp11, tmp12, tmp13; FLOAT z2, z4, z11, z13; - FLOAT av_unused z5; int i; for (i=0; i<8*8; i+=8) { @@ -99,9 +98,12 @@ static av_always_inline void row_fdct(FLOAT temp[64], int16_t *data) tmp6 += tmp7; #if 0 - z5= (tmp4 - tmp6) * A5; - z2= tmp4*A2 + z5; - z4= tmp6*A4 + z5; + { + FLOAT z5; + z5 = (tmp4 - tmp6) * A5; + z2 = tmp4 * A2 + z5; + z4 = tmp6 * A4 + z5; + } #else z2= tmp4*(A2+A5) - tmp6*A5; z4= tmp6*(A4-A5) + tmp4*A5; @@ -123,7 +125,6 @@ void ff_faandct(int16_t *data) FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; FLOAT tmp10, tmp11, tmp12, tmp13; FLOAT z2, z4, z11, z13; - FLOAT av_unused z5; FLOAT temp[64]; int i; @@ -159,9 +160,12 @@ void ff_faandct(int16_t *data) tmp6 += tmp7; #if 0 - z5= (tmp4 - tmp6) * A5; - z2= tmp4*A2 + z5; - z4= tmp6*A4 + z5; + { + FLOAT z5; + z5 = (tmp4 - tmp6) * A5; + z2 = tmp4 * A2 + z5; + z4 = tmp6 * A4 + z5; + } #else z2= tmp4*(A2+A5) - tmp6*A5; z4= tmp6*(A4-A5) + tmp4*A5; |