aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/indeo/get_bits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/codecs/indeo/get_bits.cpp')
-rw-r--r--image/codecs/indeo/get_bits.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/image/codecs/indeo/get_bits.cpp b/image/codecs/indeo/get_bits.cpp
index 60c82c4607..ade4baaa81 100644
--- a/image/codecs/indeo/get_bits.cpp
+++ b/image/codecs/indeo/get_bits.cpp
@@ -21,6 +21,7 @@
*/
#include "image/codecs/indeo/get_bits.h"
+#include "image/codecs/indeo/mem.h"
#include "common/algorithm.h"
#include "common/endian.h"
#include "common/textconsole.h"
@@ -158,7 +159,7 @@ static uint zeroExtend(uint val, uint bits) {
}
GetBits::GetBits(const byte *buffer, size_t totalBits) {
- assert(buffer && totalBits < (INT_MAX - 7));
+ assert(buffer && totalBits < (MAX_INTEGER - 7));
_buffer = buffer;
_sizeInBits = totalBits;