summaryrefslogtreecommitdiff
path: root/libavcodec/dct.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-05-17 11:48:28 +0100
committerMans Rullgard <mans@mansr.com>2011-05-17 13:57:23 +0100
commit6f2309ed2e0c5c02ab417f3f0acad23e86411079 (patch)
tree57844dca7f956adb188092118e91d558cd76f99d /libavcodec/dct.c
parent1362a291c971ba2c46c08f0533265b294030de27 (diff)
downloadffmpeg-6f2309ed2e0c5c02ab417f3f0acad23e86411079.tar.gz
dct: build dct32 as separate object files
This builds the float and fixed-point versions of dct32 separately instead of #including the file in dct.c and mpegaudiodec.c. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dct.c')
-rw-r--r--libavcodec/dct.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/dct.c b/libavcodec/dct.c
index caa6bdb4b4..5c63af30a1 100644
--- a/libavcodec/dct.c
+++ b/libavcodec/dct.c
@@ -30,9 +30,7 @@
#include <math.h>
#include "libavutil/mathematics.h"
#include "dct.h"
-
-#define DCT32_FLOAT
-#include "dct32.c"
+#include "dct32.h"
/* sin((M_PI * x / (2*n)) */
#define SIN(s,n,x) (s->costab[(n) - (x)])
@@ -210,7 +208,7 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
}
}
- s->dct32 = dct32;
+ s->dct32 = ff_dct32_float;
if (HAVE_MMX) ff_dct_init_mmx(s);
return 0;