summaryrefslogtreecommitdiffstats
path: root/libavcodec/faandct.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-09-02 23:23:03 +0200
committerDiego Biurrun <diego@biurrun.de>2014-09-05 13:55:04 +0200
commit213e606752d16f51337e94431962fb5d7749c07e (patch)
tree0a952a63f2338533101fb978e585c2a4d6ede03d /libavcodec/faandct.c
parent096a1d5b46391f65dfd0bee6292e9962f53bd7c8 (diff)
downloadffmpeg-streaming-213e606752d16f51337e94431962fb5d7749c07e.zip
ffmpeg-streaming-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.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c
index b1d7a14..4053d69 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;
OpenPOWER on IntegriCloud