mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Add sanity check for allowed LPD sampling rate."
This commit is contained in:
commit
b8a384b0cd
|
@ -1221,8 +1221,7 @@ AAC_DECODER_ERROR CLpdChannelStream_Read(
|
|||
(INT)(samplingRate * PIT_MIN_12k8 + (FSCALE_DENOM / 2)) / FSCALE_DENOM -
|
||||
(INT)PIT_MIN_12k8;
|
||||
|
||||
if (pSamplingRateInfo->samplingRate >
|
||||
FAC_FSCALE_MAX /* maximum allowed core sampling frequency */) {
|
||||
if ((samplingRate < FAC_FSCALE_MIN) || (samplingRate > FAC_FSCALE_MAX)) {
|
||||
error = AAC_DEC_PARSE_ERROR;
|
||||
goto bail;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue