summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-08-15 19:58:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-08-15 19:58:27 +0000
commitf8188626331ba132abc7b11aadb15eaac09ac7aa (patch)
tree2d3a720981605bb8007a5b9d8b7c1189277cdefb
parent36b58e850dec536b7dce5f9358744025e84d6ef9 (diff)
fixing thread safety, this may cause alignment problms (if it does than the stuff should be moved to MpegEncContext)
Originally committed as revision 2124 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/i386/mpegvideo_mmx_template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx_template.c b/libavcodec/i386/mpegvideo_mmx_template.c
index fa1ab579d9..706211eec4 100644
--- a/libavcodec/i386/mpegvideo_mmx_template.c
+++ b/libavcodec/i386/mpegvideo_mmx_template.c
@@ -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 ...