Fix Windows build

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1147 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2014-03-10 21:38:11 +00:00
parent 42aeac3ee2
commit 05d24e826d

View File

@@ -685,13 +685,14 @@ DLLEXPORT int DLLCALL tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf,
unsigned char *rgbBuf=NULL;
#endif
getinstance(handle);
for(i=0; i<MAX_COMPONENTS; i++)
{
tmpbuf[i]=NULL; _tmpbuf[i]=NULL;
tmpbuf2[i]=NULL; _tmpbuf2[i]=NULL; outbuf[i]=NULL;
}
getinstance(handle);
if((this->init&COMPRESS)==0)
_throw("tjEncodeYUV2(): Instance has not been initialized for compression");
@@ -1057,12 +1058,13 @@ DLLEXPORT int DLLCALL tjDecompressToYUV(tjhandle handle,
tmpbufsize=0, usetmpbuf=0, th[MAX_COMPONENTS];
JSAMPLE *_tmpbuf=NULL, *ptr=dstBuf; JSAMPROW *tmpbuf[MAX_COMPONENTS];
getinstance(handle);
for(i=0; i<MAX_COMPONENTS; i++)
{
tmpbuf[i]=NULL; outbuf[i]=NULL;
}
getinstance(handle);
if((this->init&DECOMPRESS)==0)
_throw("tjDecompressToYUV(): Instance has not been initialized for decompression");