Imprudence patch dragged in some regression.

This commit is contained in:
Shyotl
2010-11-18 18:53:49 -06:00
parent 7103114006
commit 8289b2c1c6
2 changed files with 1 additions and 4 deletions

View File

@@ -99,7 +99,6 @@ void info_callback(const char* msg, void*)
LLImageJ2COJ::LLImageJ2COJ() : LLImageJ2CImpl() LLImageJ2COJ::LLImageJ2COJ() : LLImageJ2CImpl()
{ {
mRawImagep=NULL;
} }
@@ -350,7 +349,7 @@ BOOL LLImageJ2COJ::encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, con
OPJ_COLOR_SPACE color_space = CLRSPC_SRGB; OPJ_COLOR_SPACE color_space = CLRSPC_SRGB;
opj_image_cmptparm_t cmptparm[MAX_COMPS]; opj_image_cmptparm_t cmptparm[MAX_COMPS];
opj_image_t * image = NULL; opj_image_t * image = NULL;
S32 numcomps = raw_image.getComponents(); S32 numcomps = llmin((S32)raw_image.getComponents(),(S32)MAX_COMPS);
S32 width = raw_image.getWidth(); S32 width = raw_image.getWidth();
S32 height = raw_image.getHeight(); S32 height = raw_image.getHeight();

View File

@@ -52,8 +52,6 @@ protected:
return (a + (1 << b) - 1) >> b; return (a + (1 << b) - 1) >> b;
} }
// Temporary variables for in-progress decodes...
LLImageRaw *mRawImagep;
}; };
#endif #endif