Mercurial > libavcodec.hg
comparison dsputil.c @ 10965:d27deb92257b libavcodec
The SSSE3 version of dct_quantize in mpegvideo_mmx_template.c needs
inv_zigzag_direct16 16-byte aligned, so mark it appropriately.
Fixes encoder crashes e.g. with MPlayer's -vf lavc.
author | reimar |
---|---|
date | Fri, 22 Jan 2010 23:40:18 +0000 |
parents | 34a65026fa06 |
children | e5ebf3a17d9d |
comparison
equal
deleted
inserted
replaced
10964:abb3b23bda35 | 10965:d27deb92257b |
---|---|
85 22, 30, 7, 15, 23, 31, 38, 46, | 85 22, 30, 7, 15, 23, 31, 38, 46, |
86 53, 61, 54, 62, 39, 47, 55, 63, | 86 53, 61, 54, 62, 39, 47, 55, 63, |
87 }; | 87 }; |
88 | 88 |
89 /* not permutated inverse zigzag_direct + 1 for MMX quantizer */ | 89 /* not permutated inverse zigzag_direct + 1 for MMX quantizer */ |
90 DECLARE_ALIGNED_8(uint16_t, inv_zigzag_direct16)[64]; | 90 DECLARE_ALIGNED_16(uint16_t, inv_zigzag_direct16)[64]; |
91 | 91 |
92 const uint8_t ff_alternate_horizontal_scan[64] = { | 92 const uint8_t ff_alternate_horizontal_scan[64] = { |
93 0, 1, 2, 3, 8, 9, 16, 17, | 93 0, 1, 2, 3, 8, 9, 16, 17, |
94 10, 11, 4, 5, 6, 7, 15, 14, | 94 10, 11, 4, 5, 6, 7, 15, 14, |
95 13, 12, 19, 18, 24, 25, 32, 33, | 95 13, 12, 19, 18, 24, 25, 32, 33, |