mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-16 11:21:22 +01:00
Make sure there are enough bits when reading ADTS header.
This commit is contained in:
parent
574bd5e407
commit
2e23af940d
@ -181,6 +181,9 @@ TRANSPORTDEC_ERROR adtsRead_DecodeHeader(HANDLE_ADTS pAdts,
|
||||
FDKmemcpy(&oldPce, &pAsc->m_progrConfigElement, sizeof(CProgramConfig));
|
||||
|
||||
valBits = FDKgetValidBits(hBs);
|
||||
if (valBits < ADTS_HEADERLENGTH) {
|
||||
return TRANSPORTDEC_NOT_ENOUGH_BITS;
|
||||
}
|
||||
|
||||
/* adts_fixed_header */
|
||||
bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user