aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tjbench.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tjbench.c b/tjbench.c
index 4e28f06..3c8f346 100644
--- a/tjbench.c
+++ b/tjbench.c
@@ -321,6 +321,8 @@ void fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual,
if(quiet==1)
printf("%-4s (%s) %-5s %-3d ", pfStr,
(flags&TJFLAG_BOTTOMUP)? "BU":"TD", subNameLong[subsamp], jpegqual);
+ for(i=0; i<h; i++)
+ memcpy(&tmpbuf[pitch*i], &srcbuf[w*ps*i], w*ps);
if((handle=tjInitCompress())==NULL)
_throwtj("executing tjInitCompress()");