aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-03-21 19:22:26 +0100
committerDiego Biurrun <diego@biurrun.de>2016-03-23 09:35:41 +0100
commit52385410b7de012c2562fb5ba8f07a4e1112c4e7 (patch)
treec5c3918d783f74b16833d5959656fe6103d1ef3e
parent65a802401c6cc136576bb2e613c0577cbf622aa8 (diff)
downloadffmpeg-52385410b7de012c2562fb5ba8f07a4e1112c4e7.tar.gz
des-test: Move a variable declaration to avoid an ifdef
-rw-r--r--libavutil/des.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavutil/des.c b/libavutil/des.c
index 86d4712944..2b77af654f 100644
--- a/libavutil/des.c
+++ b/libavutil/des.c
@@ -396,9 +396,6 @@ static int run_test(int cbc, int decrypt) {
int main(void) {
AVDES d;
int i;
-#ifdef GENTABLES
- int j;
-#endif
uint64_t key[3];
uint64_t data;
uint64_t ct;
@@ -436,6 +433,7 @@ int main(void) {
#ifdef GENTABLES
printf("static const uint32_t S_boxes_P_shuffle[8][64] = {\n");
for (i = 0; i < 8; i++) {
+ int j;
printf(" {");
for (j = 0; j < 64; j++) {
uint32_t v = S_boxes[i][j >> 1];