# HG changeset patch # User michaelni # Date 1060977507 0 # Node ID bd42cc06ceb78185c878238cee08650078643c0b # Parent f662e9c86cf25f924a983e9c13b24aa90b844b99 fixing thread safety, this may cause alignment problms (if it does than the stuff should be moved to MpegEncContext) diff -r f662e9c86cf2 -r bd42cc06ceb7 i386/mpegvideo_mmx_template.c --- a/i386/mpegvideo_mmx_template.c Tue Aug 12 18:20:29 2003 +0000 +++ b/i386/mpegvideo_mmx_template.c Fri Aug 15 19:58:27 2003 +0000 @@ -38,7 +38,9 @@ { int level=0, last_non_zero_p1, q; //=0 is cuz gcc says uninitalized ... const uint16_t *qmat, *bias; - static __align8 int16_t temp_block[64]; + __align8 int16_t temp_block[64]; + + assert((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly? //s->fdct (block); ff_fdct_mmx (block); //cant be anything else ...