# HG changeset patch # User mstorsjo # Date 1276715034 0 # Node ID 6a09fc06317a96b97679752ef9a44ae6ee5db9a1 # Parent c591e96c03ab824073c5d053f28ab9849785495c libvorbis: Use memmove instead of memcpy for shifting data diff -r c591e96c03ab -r 6a09fc06317a libvorbis.c --- a/libvorbis.c Wed Jun 16 13:07:12 2010 +0000 +++ b/libvorbis.c Wed Jun 16 19:03:54 2010 +0000 @@ -192,7 +192,7 @@ 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); }