Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-16 23:03:54 +0400
committerMartin Storsjö <martin@martin.st>2010-06-16 23:03:54 +0400
commit1204a13c48f9c5c5158bf1d6630d7cea8b20ea9c (patch)
tree5a2a0be9e8f47646e8524f26996cdd54a8c1b73c /libavcodec/libvorbis.c
parent19bd477d6890dfe4873e73a121cdfd60f5f00b0a (diff)
libvorbis: Use memmove instead of memcpy for shifting data
Originally committed as revision 23631 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libvorbis.c')
-rw-r--r--libavcodec/libvorbis.c2
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);
}