Mercurial > audlegacy
diff Plugins/Input/wma/libffwma/wmadec.c @ 1398:1ddaf20ab50e trunk
[svn] AltiVec support for WMA, by Luca "lu_zero" Barbato from Gentoo.
author | chainsaw |
---|---|
date | Thu, 13 Jul 2006 16:01:57 -0700 |
parents | 62a33367a6cb |
children | f12d7e208b43 |
line wrap: on
line diff
--- a/Plugins/Input/wma/libffwma/wmadec.c Wed Jul 12 21:16:35 2006 -0700 +++ b/Plugins/Input/wma/libffwma/wmadec.c Thu Jul 13 16:01:57 2006 -0700 @@ -178,8 +178,8 @@ init_vlc(vlc, 9, n, table_bits, 1, 1, table_codes, 4, 4); - run_table = malloc(n * sizeof(uint16_t)); - level_table = malloc(n * sizeof(uint16_t)); + run_table = av_malloc(n * sizeof(uint16_t)); + level_table = av_malloc(n * sizeof(uint16_t)); p = levels_table; i = 2; level = 1; @@ -453,7 +453,7 @@ int n, j; float alpha; n = 1 << (s->frame_len_bits - i); - window = malloc(sizeof(float) * n); + window = av_malloc(sizeof(float) * n); alpha = M_PI / (2.0 * n); for(j=0;j<n;j++) { window[n - j - 1] = sin((j + 0.5) * alpha); @@ -698,8 +698,8 @@ int n, v, a, ch, code, bsize; int coef_nb_bits, total_gain, parse_exponents; float window[BLOCK_MAX_SIZE * 2]; -// XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec -#ifdef BLAH_NO_ALTIVEC + +#ifdef HAVE_ALTIVEC volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16))); #else int nb_coefs[MAX_CHANNELS];