diff options
-rw-r--r-- | linden/indra/llimagej2coj/llimagej2coj.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llimagej2coj/llimagej2coj.cpp b/linden/indra/llimagej2coj/llimagej2coj.cpp index 829dceb..fd92370 100644 --- a/linden/indra/llimagej2coj/llimagej2coj.cpp +++ b/linden/indra/llimagej2coj/llimagej2coj.cpp | |||
@@ -200,7 +200,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod | |||
200 | { /* get maximum decomposition level difference, first field is from the COD header and the second | 200 | { /* get maximum decomposition level difference, first field is from the COD header and the second |
201 | is what is actually met in the codestream, NB: if everything was ok, this calculation will | 201 | is what is actually met in the codestream, NB: if everything was ok, this calculation will |
202 | return what was set in the cp_reduce value! */ | 202 | return what was set in the cp_reduce value! */ |
203 | decompdifference = std::max(decompdifference, cinfo.numdecompos[comp] - image->comps[comp].resno_decoded); | 203 | decompdifference = llmax(decompdifference, cinfo.numdecompos[comp] - image->comps[comp].resno_decoded); |
204 | } | 204 | } |
205 | if (decompdifference < 0) // sanity | 205 | if (decompdifference < 0) // sanity |
206 | { | 206 | { |