# HG changeset patch # User banan # Date 1156263836 0 # Node ID e28285ddde8ddaa3d398d414bb1a4664faa9b7e1 # Parent 6702a154df1f79f69c7828c78bc5a5543fbb12dc Alignment of the LT window, segfault fix patch by Baptiste Coudurier. diff -r 6702a154df1f -r e28285ddde8d wmadec.c --- a/wmadec.c Tue Aug 22 13:25:09 2006 +0000 +++ b/wmadec.c Tue Aug 22 16:23:56 2006 +0000 @@ -715,7 +715,7 @@ { int n, v, a, ch, code, bsize; int coef_nb_bits, total_gain, parse_exponents; - float window[BLOCK_MAX_SIZE * 2]; + DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]); // XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec #ifdef HAVE_ALTIVEC volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16)));