aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/indeo/mem.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-10 10:43:23 -0400
committerPaul Gilbert2016-09-10 10:43:23 -0400
commit9c7b9e166746a903dc0b7e87967ec257967e1359 (patch)
tree4c7894550a9bb46d915cd3f22701041608b77100 /image/codecs/indeo/mem.cpp
parenta6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e (diff)
downloadscummvm-rg350-9c7b9e166746a903dc0b7e87967ec257967e1359.tar.gz
scummvm-rg350-9c7b9e166746a903dc0b7e87967ec257967e1359.tar.bz2
scummvm-rg350-9c7b9e166746a903dc0b7e87967ec257967e1359.zip
IMAGE: Compilation fixes for Indeo4 decoder
Diffstat (limited to 'image/codecs/indeo/mem.cpp')
-rw-r--r--image/codecs/indeo/mem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/codecs/indeo/mem.cpp b/image/codecs/indeo/mem.cpp
index 88085aebdf..9987415799 100644
--- a/image/codecs/indeo/mem.cpp
+++ b/image/codecs/indeo/mem.cpp
@@ -85,13 +85,13 @@ void *av_mallocz(size_t size) {
}
void *av_malloc_array(size_t nmemb, size_t size) {
- if (!size || nmemb >= INT_MAX / size)
+ if (!size || nmemb >= MAX_INTEGER / size)
return nullptr;
return malloc(nmemb * size);
}
void *av_mallocz_array(size_t nmemb, size_t size) {
- if (!size || nmemb >= INT_MAX / size)
+ if (!size || nmemb >= MAX_INTEGER / size)
return NULL;
return av_mallocz(nmemb * size);