1 Index: libavcodec/vp3.c
2 ===================================================================
3 --- libavcodec/vp3.c (revision 6957)
4 +++ libavcodec/vp3.c (working copy)
9 - DECLARE_ALIGNED_16(DCTELEM, block[64]);
11 + // TJ: force alignment to 16.
13 + //DECLARE_ALIGNED_16(DCTELEM, block[64]);
14 + DCTELEM block_[64+8];
15 + DCTELEM* block = (DCTELEM*)((((unsigned long)block_)+0xf)&~0xf);
18 int motion_x = 0xdeadbeef, motion_y = 0xdeadbeef;
19 int motion_halfpel_index;
20 uint8_t *motion_source;
21 Index: libavcodec/mpegvideo.c
22 ===================================================================
23 --- libavcodec/mpegvideo.c (revision 6957)
24 +++ libavcodec/mpegvideo.c (working copy)
25 @@ -6087,7 +6087,14 @@
26 DCTELEM *block, int16_t *weight, DCTELEM *orig,
29 - DECLARE_ALIGNED_16(DCTELEM, d1[64]);
31 + // TJ: force alignment to 16.
33 + //DECLARE_ALIGNED_16(DCTELEM, d1[64]);
35 + DCTELEM* d1 = (DCTELEM*)((((unsigned long)d1_)+0xf)&~0xf);
39 const uint8_t *scantable= s->intra_scantable.scantable;
40 const uint8_t *perm_scantable= s->intra_scantable.permutated;
41 Index: libavcodec/wmadec.c
42 ===================================================================
43 --- libavcodec/wmadec.c (revision 6957)
44 +++ libavcodec/wmadec.c (working copy)
47 int n, v, a, ch, code, bsize;
48 int coef_nb_bits, total_gain, parse_exponents;
49 - DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]);
51 + // TJ: force alignment to 16.
53 + //DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]);
54 + float window_[BLOCK_MAX_SIZE * 2 + 4];
55 + float* window = (float*)((((unsigned long)window_)+0xf)&~0xf);
58 + // TJ: force alignment to 16.
59 + // moved to this block, so alignment must not be done over and over again
60 + // FFTSample is float
61 + //DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]);
62 + FFTSample output_[BLOCK_MAX_SIZE * 2 + 4];
63 + FFTSample* output = (FFTSample*)((((unsigned long)output_)+0xf)&~0xf);
66 int nb_coefs[MAX_CHANNELS];
71 for(ch = 0; ch < s->nb_channels; ch++) {
72 if (s->channel_coded[ch]) {
73 - DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]);
75 + * DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]);*/