This commit is contained in:
parent
fb14e2719a
commit
b0e5f9821c
@ -1,8 +1,6 @@
|
||||
Index: libjpeg-turbo-2.0.3/tjbench.c
|
||||
===================================================================
|
||||
--- libjpeg-turbo-2.0.3.orig/tjbench.c 2019-08-30 19:02:50.000000000 +0200
|
||||
+++ libjpeg-turbo-2.0.3/tjbench.c 2019-11-12 15:07:33.012759214 +0100
|
||||
@@ -171,7 +171,7 @@ static int decomp(unsigned char *srcBuf,
|
||||
--- a/tjbench.c
|
||||
+++ b/tjbench.c
|
||||
@@ -171,7 +171,7 @@ static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,
|
||||
}
|
||||
/* Set the destination buffer to gray so we know whether the decompressor
|
||||
attempted to write to it */
|
||||
@ -11,3 +9,13 @@ Index: libjpeg-turbo-2.0.3/tjbench.c
|
||||
|
||||
if (doYUV) {
|
||||
int width = doTile ? tilew : scaledw;
|
||||
@@ -193,7 +193,7 @@ static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,
|
||||
double start = getTime();
|
||||
|
||||
for (row = 0, dstPtr = dstBuf; row < ntilesh;
|
||||
- row++, dstPtr += pitch * tileh) {
|
||||
+ row++, dstPtr += (size_t)pitch * tileh) {
|
||||
for (col = 0, dstPtr2 = dstPtr; col < ntilesw;
|
||||
col++, tile++, dstPtr2 += ps * tilew) {
|
||||
int width = doTile ? min(tilew, w - col * tilew) : scaledw;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user