Commit f8188626 authored by Michael Niedermayer's avatar Michael Niedermayer

fixing thread safety, this may cause alignment problms (if it does than the...

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
parent 36b58e85
...@@ -38,7 +38,9 @@ static int RENAME(dct_quantize)(MpegEncContext *s, ...@@ -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 ... int level=0, last_non_zero_p1, q; //=0 is cuz gcc says uninitalized ...
const uint16_t *qmat, *bias; 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); //s->fdct (block);
ff_fdct_mmx (block); //cant be anything else ... ff_fdct_mmx (block); //cant be anything else ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment