[FFmpeg-cvslog] sipr: Use memmove() to copy overlapped buffers.
Alex Converse
git at videolan.org
Mon Jun 20 04:10:26 CEST 2011
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Sat Jun 18 15:42:57 2011 -0700| [cb372931ff3e55e47965db7b02c01df1e1b6a043] | committer: Alex Converse
sipr: Use memmove() to copy overlapped buffers.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb372931ff3e55e47965db7b02c01df1e1b6a043
---
libavcodec/sipr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 17e7e85..f4f12d8 100644
--- a/libavcodec/sipr.c
+++ b/libavcodec/sipr.c
@@ -461,7 +461,7 @@ static void decode_frame(SiprContext *ctx, SiprParameters *params,
memcpy(ctx->postfilter_syn5k0, ctx->postfilter_syn5k0 + frame_size,
LP_FILTER_ORDER*sizeof(float));
}
- memcpy(ctx->excitation, excitation - PITCH_DELAY_MAX - L_INTERPOL,
+ memmove(ctx->excitation, excitation - PITCH_DELAY_MAX - L_INTERPOL,
(PITCH_DELAY_MAX + L_INTERPOL) * sizeof(float));
ff_acelp_apply_order_2_transfer_function(out_data, synth,
More information about the ffmpeg-cvslog
mailing list