From 4db92add1bed68f35ae68758889f4c7f0048cdbd Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 25 May 2011 04:52:25 +0000 Subject: [PATCH] Need to set TJFLAG_NOREALLOC for tjTransform() git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@648 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg-jni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbojpeg-jni.c b/turbojpeg-jni.c index 1e87fc2..3c98880 100644 --- a/turbojpeg-jni.c +++ b/turbojpeg-jni.c @@ -558,7 +558,7 @@ JNIEXPORT jintArray JNICALL Java_org_libjpegturbo_turbojpeg_TJTransformer_transf } if(tjTransform(handle, jpegBuf, jpegSize, n, dstBufs, dstSizes, t, - flags)==-1) + flags|TJFLAG_NOREALLOC)==-1) { (*env)->ReleasePrimitiveArrayCritical(env, jsrcBuf, jpegBuf, 0); jpegBuf=NULL; -- 2.40.0