--- idct.c 2003/10/01 23:23:01 1.6.2.3 +++ idct.c 2005/11/22 10:23:01 1.9 @@ -20,7 +20,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: idct.c,v 1.6.2.3 2003/10/01 23:23:01 edgomez Exp $ + * $Id: idct.c,v 1.9 2005/11/22 10:23:01 suxen_drol Exp $ * ****************************************************************************/ @@ -85,7 +85,9 @@ #define W6 1108 /* 2048*sqrt(2)*cos(6*pi/16) */ #define W7 565 /* 2048*sqrt(2)*cos(7*pi/16) */ -/* private data */ +/* private data + * Initialized by idct_int32_init so it's mostly RO data, + * doesn't hurt thread safety */ static short iclip[1024]; /* clipping table */ static short *iclp; @@ -247,9 +249,9 @@ idctcol(block+i); #endif - static short *blk; - static long i; - static long X0, X1, X2, X3, X4, X5, X6, X7, X8; + short *blk; + long i; + long X0, X1, X2, X3, X4, X5, X6, X7, X8; for (i = 0; i < 8; i++) /* idct rows */ @@ -369,7 +371,7 @@ void -idct_int32_init() +idct_int32_init(void) { int i;