Browse Source

libvorbis: Use memmove instead of memcpy for shifting data

Originally committed as revision 23631 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Martin Storsjö 15 years ago
parent
commit
1204a13c48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvorbis.c

+ 1
- 1
libavcodec/libvorbis.c View File

@@ -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);
}



Loading…
Cancel
Save