diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-29 18:25:40 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-10 10:25:46 -0500 |
commit | 59f4d1b8bb4eacfb5b678eda93c1fa30b7823cb4 (patch) | |
tree | 1c27f2eb4bae02f95eefc49e1b78abc7d392c8f4 /libavcodec/truespeech.c | |
parent | 41899b9acb92dd59a0eca0f86cac4c49afbc1b79 (diff) | |
download | ffmpeg-59f4d1b8bb4eacfb5b678eda93c1fa30b7823cb4.tar.gz |
truespeech: use memmove() in truespeech_update_filters()
Diffstat (limited to 'libavcodec/truespeech.c')
-rw-r--r-- | libavcodec/truespeech.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c index 7747fca6b2..b7a2aa6fba 100644 --- a/libavcodec/truespeech.c +++ b/libavcodec/truespeech.c @@ -233,8 +233,7 @@ static void truespeech_update_filters(TSContext *dec, int16_t *out, int quart) { int i; - for(i = 0; i < 86; i++) - dec->filtbuf[i] = dec->filtbuf[i + 60]; + memmove(dec->filtbuf, &dec->filtbuf[60], 86 * sizeof(*dec->filtbuf)); for(i = 0; i < 60; i++){ dec->filtbuf[i + 86] = out[i] + dec->newvec[i] - (dec->newvec[i] >> 3); out[i] += dec->newvec[i]; |