From 1204a13c48f9c5c5158bf1d6630d7cea8b20ea9c Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 16 Jun 2010 19:03:54 +0000 Subject: libvorbis: Use memmove instead of memcpy for shifting data Originally committed as revision 23631 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libvorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/libvorbis.c') diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index f9a1b32995..a7044a23b5 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -192,7 +192,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avccontext, memcpy(packets, op2->packet, l); context->buffer_index -= l + sizeof(ogg_packet); - memcpy(context->buffer, context->buffer + l + sizeof(ogg_packet), context->buffer_index); + memmove(context->buffer, context->buffer + l + sizeof(ogg_packet), context->buffer_index); // av_log(avccontext, AV_LOG_DEBUG, "E%d\n", l); } -- cgit v1.2.3