diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-08-15 19:58:27 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-08-15 19:58:27 +0000 |
commit | f8188626331ba132abc7b11aadb15eaac09ac7aa (patch) | |
tree | 2d3a720981605bb8007a5b9d8b7c1189277cdefb /libavcodec/i386 | |
parent | 36b58e850dec536b7dce5f9358744025e84d6ef9 (diff) | |
download | ffmpeg-f8188626331ba132abc7b11aadb15eaac09ac7aa.tar.gz |
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
Diffstat (limited to 'libavcodec/i386')
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx_template.c | 4 |
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 ... |