tjbench.c: Fix GCC 8 compiler warning
This commit is contained in:
@@ -139,7 +139,7 @@ int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,
|
|||||||
unsigned long *jpegSize, unsigned char *dstBuf, int w, int h,
|
unsigned long *jpegSize, unsigned char *dstBuf, int w, int h,
|
||||||
int subsamp, int jpegQual, char *fileName, int tilew, int tileh)
|
int subsamp, int jpegQual, char *fileName, int tilew, int tileh)
|
||||||
{
|
{
|
||||||
char tempStr[1024], sizeStr[20] = "\0", qualStr[6] = "\0", *ptr;
|
char tempStr[1024], sizeStr[20] = "\0", qualStr[13] = "\0", *ptr;
|
||||||
FILE *file = NULL;
|
FILE *file = NULL;
|
||||||
tjhandle handle = NULL;
|
tjhandle handle = NULL;
|
||||||
int row, col, iter = 0, dstBufAlloc = 0, retval = 0;
|
int row, col, iter = 0, dstBufAlloc = 0, retval = 0;
|
||||||
@@ -152,8 +152,8 @@ int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,
|
|||||||
unsigned char *dstPtr, *dstPtr2, *yuvBuf = NULL;
|
unsigned char *dstPtr, *dstPtr2, *yuvBuf = NULL;
|
||||||
|
|
||||||
if (jpegQual > 0) {
|
if (jpegQual > 0) {
|
||||||
snprintf(qualStr, 6, "_Q%d", jpegQual);
|
snprintf(qualStr, 13, "_Q%d", jpegQual);
|
||||||
qualStr[5] = 0;
|
qualStr[12] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((handle = tjInitDecompress()) == NULL)
|
if ((handle = tjInitDecompress()) == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user