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