]> granicus.if.org Git - libjpeg-turbo/commitdiff
Need to set TJFLAG_NOREALLOC for tjTransform()
authorDRC <dcommander@users.sourceforge.net>
Wed, 25 May 2011 04:52:25 +0000 (04:52 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 25 May 2011 04:52:25 +0000 (04:52 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@648 632fc199-4ca6-4c93-a231-07263d6284db

turbojpeg-jni.c

index 1e87fc250f19bfbfa13e7d5464e66f372c93ac47..3c988803fa4ee168b302b7ed6506fa974af38123 100644 (file)
@@ -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;