Browse Source

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
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
f818862633
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/i386/mpegvideo_mmx_template.c

+ 3
- 1
libavcodec/i386/mpegvideo_mmx_template.c View 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 ...


Loading…
Cancel
Save