Browse Source

Do not reimplement memmove()

Originally committed as revision 14087 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Vitor Sessak 17 years ago
parent
commit
a03a6db1af
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavcodec/ra288.c

+ 2
- 4
libavcodec/ra288.c View File

@@ -54,8 +54,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
double sum, sumsum;
float buffer[5];

for (x=35; x >= 0; x--)
glob->sb[x+5] = glob->sb[x];
memmove(glob->sb + 5, glob->sb, 36 * sizeof(*glob->sb));

for (x=4; x >= 0; x--)
glob->sb[x] = -scalar_product_float(glob->sb + x + 1, glob->pr1, 36);
@@ -81,8 +80,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
sum = 1;

/* shift and store */
for (x=10; x > 0; x--)
glob->lhist[x] = glob->lhist[x-1];
memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));

*glob->lhist = glob->history[glob->phase] = 10 * log10(sum) - 32;



Loading…
Cancel
Save