[FFmpeg-cvslog] truespeech: use memmove() in truespeech_update_filters()
Justin Ruggles
git at videolan.org
Fri Nov 11 02:53:06 CET 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Oct 29 18:25:40 2011 -0400| [59f4d1b8bb4eacfb5b678eda93c1fa30b7823cb4] | committer: Justin Ruggles
truespeech: use memmove() in truespeech_update_filters()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59f4d1b8bb4eacfb5b678eda93c1fa30b7823cb4
---
libavcodec/truespeech.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/truespeech.c b/libavcodec/truespeech.c
index 7747fca..b7a2aa6 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];
More information about the ffmpeg-cvslog
mailing list