diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-05-15 20:47:55 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-05-15 20:47:55 +0000 |
commit | c6bcbb2cd388678142396f218e9e5d29638554ad (patch) | |
tree | 6ba9c3d697a95ad2ebf44afcee6163cff8b48a55 /libavcodec/mpegaudiodec.c | |
parent | b9a793eec8308e13e66e66dfef7f9733f1ab6823 (diff) | |
download | ffmpeg-c6bcbb2cd388678142396f218e9e5d29638554ad.tar.gz |
Use DECLARE_ALIGNED to ease porting
Originally committed as revision 9031 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 3701b0decc..4460b9e86f 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -79,9 +79,9 @@ typedef struct MPADecodeContext { int mode; int mode_ext; int lsf; - MPA_INT synth_buf[MPA_MAX_CHANNELS][512 * 2] __attribute__((aligned(16))); + DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512 * 2]); int synth_buf_offset[MPA_MAX_CHANNELS]; - int32_t sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT] __attribute__((aligned(16))); + DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]); int32_t mdct_buf[MPA_MAX_CHANNELS][SBLIMIT * 18]; /* previous samples, for layer 3 MDCT */ #ifdef DEBUG int frame_count; @@ -170,7 +170,7 @@ static const int32_t scale_factor_mult2[3][3] = { SCALE_GEN(4.0 / 9.0), /* 9 steps */ }; -static MPA_INT window[512] __attribute__((aligned(16))); +static DECLARE_ALIGNED_16(MPA_INT, window[512]); /* layer 1 unscaling */ /* n = number of bits of the mantissa minus 1 */ |