diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-16 19:03:54 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-16 19:03:54 +0000 |
commit | 1204a13c48f9c5c5158bf1d6630d7cea8b20ea9c (patch) | |
tree | 5a2a0be9e8f47646e8524f26996cdd54a8c1b73c | |
parent | 19bd477d6890dfe4873e73a121cdfd60f5f00b0a (diff) | |
download | ffmpeg-1204a13c48f9c5c5158bf1d6630d7cea8b20ea9c.tar.gz |
libvorbis: Use memmove instead of memcpy for shifting data
Originally committed as revision 23631 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/libvorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |