mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02:00
Prevent bit buffer counter overflow.
While long-term test we discovered a bit counter overflow in the bit buffer. The bit buffer state was only used by HCR and RVLC tool and can easily be substituted with FDKgetValidBits() call. The following patch completely removes the bit counter and all its obsolete functions. Bug: 112662184 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Icee0519d26a2aa62367d2dece59cd3d60ffcade7
This commit is contained in:
committed by
Jean-Michel Trivi
parent
f19e863cce
commit
15292f7e96
@ -113,7 +113,6 @@ typedef struct {
|
||||
UINT ValidBits;
|
||||
UINT ReadOffset;
|
||||
UINT WriteOffset;
|
||||
UINT BitCnt;
|
||||
UINT BitNdx;
|
||||
|
||||
UCHAR *Buffer;
|
||||
@ -159,15 +158,10 @@ void FDK_pushBack(HANDLE_FDK_BITBUF hBitBuffer, const UINT numberOfBits,
|
||||
void FDK_pushForward(HANDLE_FDK_BITBUF hBitBuffer, const UINT numberOfBits,
|
||||
UCHAR config);
|
||||
|
||||
void FDK_byteAlign(HANDLE_FDK_BITBUF hBitBuffer, UCHAR config);
|
||||
|
||||
UINT FDK_getValidBits(HANDLE_FDK_BITBUF hBitBuffer);
|
||||
|
||||
INT FDK_getFreeBits(HANDLE_FDK_BITBUF hBitBuffer);
|
||||
|
||||
void FDK_setBitCnt(HANDLE_FDK_BITBUF hBitBuffer, const UINT value);
|
||||
INT FDK_getBitCnt(HANDLE_FDK_BITBUF hBitBuffer);
|
||||
|
||||
void FDK_Feed(HANDLE_FDK_BITBUF hBitBuffer, const UCHAR inputBuffer[],
|
||||
const UINT bufferSize, UINT *bytesValid);
|
||||
|
||||
|
Reference in New Issue
Block a user