changeset 11715:a0f514fb84d6 libavcodec

Fix mpegaudio tablegen. Patch by Michael Kostylev, michael D kostylev A gmail
author michael
date Thu, 13 May 2010 10:02:48 +0000
parents 8ad2b8f20e6a
children fcb1d0addf28
files mpegaudio_tablegen.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudio_tablegen.c	Thu May 13 10:02:04 2010 +0000
+++ b/mpegaudio_tablegen.c	Thu May 13 10:02:48 2010 +0000
@@ -43,9 +43,17 @@
     write_uint32_array(exp_table, 512);
     printf("};\n");
 
+    printf("static const float exp_table_float[512] = {\n");
+    write_float_array(exp_table_float, 512);
+    printf("};\n");
+
     printf("static const uint32_t expval_table[512][16] = {\n");
     write_uint32_2d_array(expval_table, 512, 16);
     printf("};\n");
 
+    printf("static const float expval_table_float[512][16] = {\n");
+    write_float_2d_array(expval_table_float, 512, 16);
+    printf("};\n");
+
     return 0;
 }