changeset 11883:6a09fc06317a libavcodec

libvorbis: Use memmove instead of memcpy for shifting data
author mstorsjo
date Wed, 16 Jun 2010 19:03:54 +0000
parents c591e96c03ab
children d62a89be5458
files libvorbis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }