[FFmpeg-devel] [PATCH] avcodec/cos_tablegen: extend table generation to 17bits

James Almer jamrial at gmail.com
Sat Mar 5 03:52:50 CET 2016

Fixes compilation of fft with hardcoded tables

Signed-off-by: James Almer <jamrial at gmail.com>
fate-fft tests only up to 12 bits, so i ran fft-test -n17 manually
and it didn't fail (It was also very slow).
This change also generates sine tables for 17bit which are currently
unused, so they kinda bloat the binary. Maybe someone wants to update
rdft like it was done for fft and give them purpose?

 libavcodec/cos_tablegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cos_tablegen.c b/libavcodec/cos_tablegen.c
index dbd0cc0..7206aad 100644
--- a/libavcodec/cos_tablegen.c
+++ b/libavcodec/cos_tablegen.c
@@ -26,7 +26,7 @@
 #include "libavutil/mathematics.h"
-#define BITS 16
+#define BITS 17
 #define FLOATFMT "%.18e"
 #define FIXEDFMT "%6d"

More information about the ffmpeg-devel mailing list