diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-06 10:30:21 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-06 10:30:21 +0000 |
commit | a03a6db1af963ab8901ac4d9f5c2dd563b389d00 (patch) | |
tree | 33e99bb716de25e93446682740fda266cf4c3069 /libavcodec/ra288.c | |
parent | 7bd2f502faa5932223db961b92a9f74b0b96f5d3 (diff) | |
download | ffmpeg-a03a6db1af963ab8901ac4d9f5c2dd563b389d00.tar.gz |
Do not reimplement memmove()
Originally committed as revision 14087 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index f9275c8c79..5fb41bf4e9 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -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; |