diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-11 13:45:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-11 13:55:09 +0200 |
commit | 5174032953dabb3ab2eb3a5c1bf6934b5b79c3c9 (patch) | |
tree | d4844330486b332872368c02f3c96a65ed0bd2cd /libavcodec/g723_1.c | |
parent | 7b5c03064df522aef027490c51af8136ed5f17b3 (diff) | |
download | ffmpeg-5174032953dabb3ab2eb3a5c1bf6934b5b79c3c9.tar.gz |
g723.1: use memmove() where overlapping src and dst can happen.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g723_1.c')
-rw-r--r-- | libavcodec/g723_1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 9970d907f7..e1dc431d0e 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -2179,7 +2179,7 @@ static int g723_1_encode_frame(AVCodecContext *avctx, unsigned char *buf, gen_acb_excitation(impulse_resp, p->prev_excitation, p->pitch_lag[i >> 1], p->subframe[i], Rate6k3); - memcpy(p->prev_excitation, p->prev_excitation + SUBFRAME_LEN, + memmove(p->prev_excitation, p->prev_excitation + SUBFRAME_LEN, sizeof(int16_t) * (PITCH_MAX - SUBFRAME_LEN)); for (j = 0; j < SUBFRAME_LEN; j++) in[j] = av_clip_int16((in[j] << 1) + impulse_resp[j]); |