mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-04-14 21:52:03 +02:00
Make sure there are enough bits when reading ADTS header.
This commit is contained in:
parent
a3d1168943
commit
e2e35b8273
@ -185,6 +185,9 @@ TRANSPORTDEC_ERROR adtsRead_DecodeHeader(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
valBits = FDKgetValidBits(hBs);
|
valBits = FDKgetValidBits(hBs);
|
||||||
|
if (valBits < ADTS_HEADERLENGTH) {
|
||||||
|
return TRANSPORTDEC_NOT_ENOUGH_BITS;
|
||||||
|
}
|
||||||
|
|
||||||
/* adts_fixed_header */
|
/* adts_fixed_header */
|
||||||
bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id);
|
bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user