From e006f5c427a901b62d8c2438c74f327f39bbaa65 Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 28 Jan 2012 06:31:44 +0000 Subject: [PATCH] Oops. Height of output buffer should equal scaled height, not JPEG height. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@755 632fc199-4ca6-4c93-a231-07263d6284db --- tjbench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tjbench.c b/tjbench.c index f28780d..f298732 100644 --- a/tjbench.c +++ b/tjbench.c @@ -1,5 +1,5 @@ /* - * Copyright (C)2009-2011 D. R. Commander. All Rights Reserved. + * Copyright (C)2009-2012 D. R. Commander. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -110,7 +110,7 @@ int decomptest(unsigned char *srcbuf, unsigned char **jpegbuf, if((handle=tjInitDecompress())==NULL) _throwtj("executing tjInitDecompress()"); - bufsize=(yuv==YUVDECODE? yuvsize:pitch*h); + bufsize=(yuv==YUVDECODE? yuvsize:pitch*scaledh); if(dstbuf==NULL) { if((dstbuf=(unsigned char *)malloc(bufsize)) == NULL) -- 2.49.0