summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudio_tablegen.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-17 23:42:58 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 17:51:47 +0100
commit12e941df89aa0e2aa8c6b90bfef9d4127ae7063c (patch)
treed9a56814ff86f7aefbb93b88af03f48d6523f367 /libavcodec/mpegaudio_tablegen.h
parent22140374c8980420a3b5c65fcc11d90a04d35946 (diff)
downloadffmpeg-12e941df89aa0e2aa8c6b90bfef9d4127ae7063c.tar.gz
avcodec/mpegaudio_tablegen: Don't inappropriately use static array
Each invocation of this function is only entered once, so using a static array makes no sense (and given that the whole array is reinitialized at the beginning of this function, it wouldn't even make sense if the function were called multiple times). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudio_tablegen.h')
-rw-r--r--libavcodec/mpegaudio_tablegen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudio_tablegen.h b/libavcodec/mpegaudio_tablegen.h
index dcc09e37b8..d9e32b54da 100644
--- a/libavcodec/mpegaudio_tablegen.h
+++ b/libavcodec/mpegaudio_tablegen.h
@@ -59,7 +59,7 @@ static av_cold void mpegaudio_tableinit(void)
M_SQRT2 , /* 2 ^ (2 * 0.25) */
1.68179283050742908606, /* 2 ^ (3 * 0.25) */
};
- static double pow43_lut[16];
+ double pow43_lut[16];
double exp2_base = 2.11758236813575084767080625169910490512847900390625e-22; // 2^(-72)
double exp2_val;
double pow43_val = 0;