diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2019-10-21 14:52:48 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2019-10-21 15:20:42 -0700 |
commit | fc8faa38d90380adfb61b2b280a36c73369c9aff (patch) | |
tree | fa7778872b05e66a9aeddce2a0fc1d7deab8c770 /libAACdec | |
parent | 418526638abb80291feb502b91d13b52aaa2dc9d (diff) | |
download | fdk-aac-fc8faa38d90380adfb61b2b280a36c73369c9aff.tar.gz fdk-aac-fc8faa38d90380adfb61b2b280a36c73369c9aff.tar.bz2 fdk-aac-fc8faa38d90380adfb61b2b280a36c73369c9aff.zip |
FDK: USAC CLpd_Reset uses rate constants
Use constants defined in libAACdec/src/usacdec_const.h
Test: atest DecoderTestXheAac
Change-Id: Idf1aa9fefb92b1abf64f50b044b2490b0d31b426
Diffstat (limited to 'libAACdec')
-rw-r--r-- | libAACdec/src/usacdec_lpd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACdec/src/usacdec_lpd.cpp b/libAACdec/src/usacdec_lpd.cpp index 5c3426d..de0c2de 100644 --- a/libAACdec/src/usacdec_lpd.cpp +++ b/libAACdec/src/usacdec_lpd.cpp @@ -1228,7 +1228,7 @@ AAC_DECODER_ERROR CLpdChannelStream_Read( (INT)(samplingRate * PIT_MIN_12k8 + (FSCALE_DENOM / 2)) / FSCALE_DENOM - (INT)PIT_MIN_12k8; - if ((samplingRate < 6000) || (samplingRate > 24000)) { + if ((samplingRate < FAC_FSCALE_MIN) || (samplingRate > FAC_FSCALE_MAX)) { error = AAC_DEC_PARSE_ERROR; goto bail; } |