changeset 1403:bd42cc06ceb7 libavcodec

fixing thread safety, this may cause alignment problms (if it does than the stuff should be moved to MpegEncContext)
author michaelni
date Fri, 15 Aug 2003 19:58:27 +0000
parents f662e9c86cf2
children 321fd44a1e3e
files i386/mpegvideo_mmx_template.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ...