1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-16 19:30:34 +01:00

Revert "Don't use an enum for a value read directly from the bitstream"

This reverts commit 8439b745f65bce3fd55ffc9f9edcc04f5f447c55.

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:53:48 +02:00
parent ea21799a7b
commit 60a11ea3ef

View File

@ -1549,7 +1549,8 @@ static TRANSPORTDEC_ERROR extElementConfig(CSUsacExtElementConfig *extElement,
const AUDIO_OBJECT_TYPE aot) {
TRANSPORTDEC_ERROR ErrorStatus = TRANSPORTDEC_OK;
int usacExtElementType = escapedValue(hBs, 4, 8, 16);
USAC_EXT_ELEMENT_TYPE usacExtElementType =
(USAC_EXT_ELEMENT_TYPE)escapedValue(hBs, 4, 8, 16);
/* recurve extension elements which are invalid for USAC */
if (aot == AOT_USAC) {
@ -1566,7 +1567,7 @@ static TRANSPORTDEC_ERROR extElementConfig(CSUsacExtElementConfig *extElement,
}
}
extElement->usacExtElementType = (USAC_EXT_ELEMENT_TYPE) usacExtElementType;
extElement->usacExtElementType = usacExtElementType;
int usacExtElementConfigLength = escapedValue(hBs, 4, 8, 16);
extElement->usacExtElementConfigLength = (USHORT)usacExtElementConfigLength;
INT bsAnchor;