summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dct.h4
-rw-r--r--libavcodec/fft-test.c4
-rw-r--r--libavcodec/rdft.h4
3 files changed, 7 insertions, 5 deletions
diff --git a/libavcodec/dct.h b/libavcodec/dct.h
index 24926a7..3fd4e27 100644
--- a/libavcodec/dct.h
+++ b/libavcodec/dct.h
@@ -28,7 +28,7 @@
#include "rdft.h"
-typedef struct DCTContext {
+struct DCTContext {
int nbits;
int inverse;
RDFTContext rdft;
@@ -36,7 +36,7 @@ typedef struct DCTContext {
FFTSample *csc2;
void (*dct_calc)(struct DCTContext *s, FFTSample *data);
void (*dct32)(FFTSample *out, const FFTSample *in);
-} DCTContext;
+};
/**
* Set up DCT.
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 2adde93..063f8b1 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -39,9 +39,11 @@
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
-#include "dct.h"
#include "fft.h"
+#if FFT_FLOAT
+#include "dct.h"
#include "rdft.h"
+#endif
/* reference fft */
diff --git a/libavcodec/rdft.h b/libavcodec/rdft.h
index f9a23ff..8ff620f 100644
--- a/libavcodec/rdft.h
+++ b/libavcodec/rdft.h
@@ -48,7 +48,7 @@ extern SINTABLE(16384);
extern SINTABLE(32768);
extern SINTABLE(65536);
-typedef struct RDFTContext {
+struct RDFTContext {
int nbits;
int inverse;
int sign_convention;
@@ -58,7 +58,7 @@ typedef struct RDFTContext {
SINTABLE_CONST FFTSample *tsin;
FFTContext fft;
void (*rdft_calc)(struct RDFTContext *s, FFTSample *z);
-} RDFTContext;
+};
/**
* Set up a real FFT.
OpenPOWER on IntegriCloud