aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec/src/rvlcbit.h
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-06-08 18:03:16 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-08-17 16:36:07 -0700
commit15292f7e9620caf9e8df26a62efc2a2891ea822e (patch)
treeca9019ef0d0e97bc657559ad2ae591c817f5f371 /libAACdec/src/rvlcbit.h
parentf19e863cce96cc1e5f4ad7ce512810d5a2843ea6 (diff)
downloadfdk-aac-15292f7e9620caf9e8df26a62efc2a2891ea822e.tar.gz
fdk-aac-15292f7e9620caf9e8df26a62efc2a2891ea822e.tar.bz2
fdk-aac-15292f7e9620caf9e8df26a62efc2a2891ea822e.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
Diffstat (limited to 'libAACdec/src/rvlcbit.h')
-rw-r--r--libAACdec/src/rvlcbit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libAACdec/src/rvlcbit.h b/libAACdec/src/rvlcbit.h
index 5c6a3f1..2578453 100644
--- a/libAACdec/src/rvlcbit.h
+++ b/libAACdec/src/rvlcbit.h
@@ -105,7 +105,7 @@ amm-info@iis.fraunhofer.de
#include "rvlc.h"
-UCHAR rvlcReadBitFromBitstream(HANDLE_FDK_BITSTREAM bs, INT *pPosition,
- UCHAR readDirection);
+UCHAR rvlcReadBitFromBitstream(HANDLE_FDK_BITSTREAM bs, const INT bsAnchor,
+ INT *pPosition, UCHAR readDirection);
#endif /* RVLCBIT_H */