[FFmpeg-cvslog] r23631 - trunk/libavcodec/libvorbis.c

mstorsjo subversion
Wed Jun 16 21:03:54 CEST 2010


Author: mstorsjo
Date: Wed Jun 16 21:03:54 2010
New Revision: 23631

Log:
libvorbis: Use memmove instead of memcpy for shifting data

Modified:
   trunk/libavcodec/libvorbis.c

Modified: trunk/libavcodec/libvorbis.c
==============================================================================
--- trunk/libavcodec/libvorbis.c	Wed Jun 16 20:41:26 2010	(r23630)
+++ trunk/libavcodec/libvorbis.c	Wed Jun 16 21:03:54 2010	(r23631)
@@ -192,7 +192,7 @@ static int oggvorbis_encode_frame(AVCode
 
         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);
     }
 



More information about the ffmpeg-cvslog mailing list