From ac10ac25317d2027e21b1390054e47201e7aec98 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 16 Sep 2020 10:15:54 +0200 Subject: Update fdk-aac This corresponds to 9718203 in https://github.com/Opendigitalradio/fdk-aac --- fdk-aac/libAACdec/src/aacdec_hcr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fdk-aac/libAACdec/src/aacdec_hcr.cpp') diff --git a/fdk-aac/libAACdec/src/aacdec_hcr.cpp b/fdk-aac/libAACdec/src/aacdec_hcr.cpp index 6114756..26fdd97 100644 --- a/fdk-aac/libAACdec/src/aacdec_hcr.cpp +++ b/fdk-aac/libAACdec/src/aacdec_hcr.cpp @@ -1423,6 +1423,9 @@ static INT DecodeEscapeSequence(HANDLE_FDK_BITSTREAM bs, const INT bsAnchor, sign = (quantSpecCoef >= 0) ? 1 : -1; + if (escapeOnesCounter > 30) + escapeOnesCounter = 30; + quantSpecCoef = sign * (((INT)1 << escapeOnesCounter) + escape_word); return quantSpecCoef; -- cgit v1.2.3