From f8188626331ba132abc7b11aadb15eaac09ac7aa Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Aug 2003 19:58:27 +0000 Subject: 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 --- libavcodec/i386/mpegvideo_mmx_template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/i386/mpegvideo_mmx_template.c') 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 ... -- cgit v1.2.3