1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-01-05 20:37:13 +01:00

FDK: USAC CLpd_Reset uses rate constants

Use constants defined in libAACdec/src/usacdec_const.h

Test: atest DecoderTestXheAac
Change-Id: Idf1aa9fefb92b1abf64f50b044b2490b0d31b426
This commit is contained in:
Jean-Michel Trivi 2019-10-21 14:52:48 -07:00
parent 418526638a
commit fc8faa38d9

View File

@ -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;
}