Commit 8768f8f4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegaudiodec_template: use double to build csa tables

Fixes rounding difference between 32bit x86 and 64bit
Fixes fate failure with gapless mp3
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 38f67260
...@@ -388,7 +388,7 @@ static av_cold void decode_init_static(void) ...@@ -388,7 +388,7 @@ static av_cold void decode_init_static(void)
} }
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
float ci, cs, ca; double ci, cs, ca;
ci = ci_table[i]; ci = ci_table[i];
cs = 1.0 / sqrt(1.0 + ci * ci); cs = 1.0 / sqrt(1.0 + ci * ci);
ca = cs * ci; ca = cs * ci;
......
d5c88cf38416329a052a9b0cb140fb4c *tests/data/fate/gapless-mp3.out-1 d5c88cf38416329a052a9b0cb140fb4c *tests/data/fate/gapless-mp3.out-1
3e41cbd4dcd511d3155234684252beab c96c3ae7bd3300fd2f4debac222de5b7
68f040b12d79c71e3b2e8ba90a9cbd96 *tests/data/fate/gapless-mp3.out-2 68f040b12d79c71e3b2e8ba90a9cbd96 *tests/data/fate/gapless-mp3.out-2
3e41cbd4dcd511d3155234684252beab c96c3ae7bd3300fd2f4debac222de5b7
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment