]> git.sesse.net Git - ffmpeg/commitdiff
fixing thread safety, this may cause alignment problms (if it does than the stuff...
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Aug 2003 19:58:27 +0000 (19:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Aug 2003 19:58:27 +0000 (19:58 +0000)
Originally committed as revision 2124 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/i386/mpegvideo_mmx_template.c

index fa1ab579d98096f0fa32e51227512cb71008b98f..706211eec4d93bc72862ad1e5ac79a3c881bf444 100644 (file)
@@ -38,7 +38,9 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
 {
     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 ...