aboutsummaryrefslogtreecommitdiff
path: root/common/dct.cpp
diff options
context:
space:
mode:
authorDavid Fioramonti2018-08-25 04:16:13 -0700
committerEugene Sandulenko2018-08-25 23:50:07 +0200
commitcf99bb0a5e4ff796dbede334e66cad4a0682baf4 (patch)
tree05f02fba3ff675ad84bd81c66a01bfa4ca5bc37e /common/dct.cpp
parentb00395b0b976b869cb83c1181481f1ad7ba16b1e (diff)
downloadscummvm-rg350-cf99bb0a5e4ff796dbede334e66cad4a0682baf4.tar.gz
scummvm-rg350-cf99bb0a5e4ff796dbede334e66cad4a0682baf4.tar.bz2
scummvm-rg350-cf99bb0a5e4ff796dbede334e66cad4a0682baf4.zip
COMMON: Update RDFT and DCT cos/sin table constructor usage
When the constructor for the cos/sin table was changed from number of bits to number of points all usages thoughout the code should of been changed, but this was missed in RDFT and DCT. Fixes Trac#10683.
Diffstat (limited to 'common/dct.cpp')
-rw-r--r--common/dct.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/dct.cpp b/common/dct.cpp
index 9d551b95ba..374eee03fc 100644
--- a/common/dct.cpp
+++ b/common/dct.cpp
@@ -30,7 +30,7 @@
namespace Common {
-DCT::DCT(int bits, TransformType trans) : _bits(bits), _cos(_bits + 2), _trans(trans), _rdft(nullptr) {
+DCT::DCT(int bits, TransformType trans) : _bits(bits), _cos(1 << (_bits + 2) ), _trans(trans), _rdft(nullptr) {
int n = 1 << _bits;
_tCos = _cos.getTable();