mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02:00
Revert "Don't use an enum for a value read directly from the bitstream"
This reverts commit e7d8591ff2
.
This local fix doesn't seem to be needed any more after the latest
upstream update.
This commit is contained in:
@@ -1631,14 +1631,14 @@ static TRANSPORTDEC_ERROR configExtension(CSUsacConfig *usc,
|
|||||||
TRANSPORTDEC_ERROR ErrorStatus = TRANSPORTDEC_OK;
|
TRANSPORTDEC_ERROR ErrorStatus = TRANSPORTDEC_OK;
|
||||||
|
|
||||||
int numConfigExtensions;
|
int numConfigExtensions;
|
||||||
int usacConfigExtType;
|
CONFIG_EXT_ID usacConfigExtType;
|
||||||
int usacConfigExtLength;
|
int usacConfigExtLength;
|
||||||
|
|
||||||
numConfigExtensions = (int)escapedValue(hBs, 2, 4, 8) + 1;
|
numConfigExtensions = (int)escapedValue(hBs, 2, 4, 8) + 1;
|
||||||
for (int confExtIdx = 0; confExtIdx < numConfigExtensions; confExtIdx++) {
|
for (int confExtIdx = 0; confExtIdx < numConfigExtensions; confExtIdx++) {
|
||||||
INT nbits;
|
INT nbits;
|
||||||
int loudnessInfoSetConfigExtensionPosition = FDKgetValidBits(hBs);
|
int loudnessInfoSetConfigExtensionPosition = FDKgetValidBits(hBs);
|
||||||
usacConfigExtType = escapedValue(hBs, 4, 8, 16);
|
usacConfigExtType = (CONFIG_EXT_ID)escapedValue(hBs, 4, 8, 16);
|
||||||
usacConfigExtLength = (int)escapedValue(hBs, 4, 8, 16);
|
usacConfigExtLength = (int)escapedValue(hBs, 4, 8, 16);
|
||||||
|
|
||||||
/* Start bit position of config extension */
|
/* Start bit position of config extension */
|
||||||
|
Reference in New Issue
Block a user