summaryrefslogtreecommitdiffstats
path: root/libAACdec/src/aacdec_hcr_bit.h
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-06-08 18:03:16 +0200
committerWolf-Dieter Enders <grzwolf1@gmail.com>2018-11-18 22:07:46 +0100
commitac21d11767b75a2aa34d92d5f384d6e4b26ef683 (patch)
treecb1cc91f62d182b702bcfe9146d68cc925add6dc /libAACdec/src/aacdec_hcr_bit.h
parent70d7432d80779dfd5b61d0b6b6c45c18a2701066 (diff)
downloadandroid_external_aac-ac21d11767b75a2aa34d92d5f384d6e4b26ef683.tar.gz
android_external_aac-ac21d11767b75a2aa34d92d5f384d6e4b26ef683.tar.bz2
android_external_aac-ac21d11767b75a2aa34d92d5f384d6e4b26ef683.zip
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 (cherry picked from commit 15292f7e9620caf9e8df26a62efc2a2891ea822e)
Diffstat (limited to 'libAACdec/src/aacdec_hcr_bit.h')
-rw-r--r--libAACdec/src/aacdec_hcr_bit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libAACdec/src/aacdec_hcr_bit.h b/libAACdec/src/aacdec_hcr_bit.h
index 8994ff1..e6d28da 100644
--- a/libAACdec/src/aacdec_hcr_bit.h
+++ b/libAACdec/src/aacdec_hcr_bit.h
@@ -98,6 +98,7 @@ amm-info@iis.fraunhofer.de
UCHAR ToggleReadDirection(UCHAR readDirection);
UINT HcrGetABitFromBitstream(HANDLE_FDK_BITSTREAM bs,
+ const INT bsAnchor,
USHORT *pLeftStartOfSegment,
USHORT *pRightStartOfSegment,
UCHAR readDirection);