mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
libvorbis: Use memmove instead of memcpy for shifting data
Originally committed as revision 23631 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
19bd477d68
commit
1204a13c48
@ -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…
Reference in New Issue
Block a user