diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-14 17:32:17 +0100 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-09 14:01:13 +0200 |
| commit | c89fb86cefb19ac9cf198c1e5cc31a85beab072e (patch) | |
| tree | 74a5bd821b8a2823d6a0391066bce9fca23e6f35 /libFDK/src/mdct.cpp | |
| parent | a0bd8aa3b6339082fbe9d830264839fa50c0a4b7 (diff) | |
| download | fdk-aac-c89fb86cefb19ac9cf198c1e5cc31a85beab072e.tar.gz fdk-aac-c89fb86cefb19ac9cf198c1e5cc31a85beab072e.tar.bz2 fdk-aac-c89fb86cefb19ac9cf198c1e5cc31a85beab072e.zip | |
Add DAB+ support
Diffstat (limited to 'libFDK/src/mdct.cpp')
| -rw-r--r-- | libFDK/src/mdct.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libFDK/src/mdct.cpp b/libFDK/src/mdct.cpp index 9a29aa1..9347a16 100644 --- a/libFDK/src/mdct.cpp +++ b/libFDK/src/mdct.cpp @@ -119,6 +119,9 @@ void imdct_gain(FIXP_DBL *pGain_m, int *pGain_e, int tl) gain_e += -MDCT_OUTPUT_GAIN - log2_tl - MDCT_OUT_HEADROOM + 1; + FDK_ASSERT(log2_tl - 2 >= 0); + FDK_ASSERT(log2_tl - 2 < 8*sizeof(int)); + /* Detect non-radix 2 transform length and add amplitude compensation factor which cannot be included into the exponent above */ switch ( (tl) >> (log2_tl - 2) ) { |
