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:
Martin Storsjo 2020-11-17 12:54:26 +02:00
parent 60a11ea3ef
commit d9a9f3b793
1 changed files with 2 additions and 2 deletions

View File

@ -1631,14 +1631,14 @@ static TRANSPORTDEC_ERROR configExtension(CSUsacConfig *usc,
TRANSPORTDEC_ERROR ErrorStatus = TRANSPORTDEC_OK;
int numConfigExtensions;
int usacConfigExtType;
CONFIG_EXT_ID usacConfigExtType;
int usacConfigExtLength;
numConfigExtensions = (int)escapedValue(hBs, 2, 4, 8) + 1;
for (int confExtIdx = 0; confExtIdx < numConfigExtensions; confExtIdx++) {
INT nbits;
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);
/* Start bit position of config extension */