aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-12-16 02:32:59 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-12-16 02:32:59 +0000
commitaa645b9888d84090e27d58826d029df24fc78a9f (patch)
treeb34b6449b96de9fa0d6a0ef92a677e270c28c368 /libavcodec/ac3enc.c
parente8d21fba3f09271cb713f6a8203ef403704ed29c (diff)
downloadffmpeg-aa645b9888d84090e27d58826d029df24fc78a9f.tar.gz
Make windowed_samples 16-byte aligned.
This will allow future SIMD optimization of the window function. Originally committed as revision 26025 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 2db3cec307..f80d31d83d 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -121,9 +121,10 @@ typedef struct AC3EncodeContext {
uint16_t *qmant1_ptr, *qmant2_ptr, *qmant4_ptr; ///< mantissa pointers for bap=1,2,4
int16_t **planar_samples;
- int16_t windowed_samples[AC3_WINDOW_SIZE];
uint8_t *bap_buffer;
uint8_t *bap1_buffer;
+
+ DECLARE_ALIGNED(16, int16_t, windowed_samples)[AC3_WINDOW_SIZE];
} AC3EncodeContext;