Commit 0594cfcd authored by mstorsjo's avatar mstorsjo

libvorbis: Use memmove instead of memcpy for shifting data


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23631 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2fb30a18
...@@ -192,7 +192,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avccontext, ...@@ -192,7 +192,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avccontext,
memcpy(packets, op2->packet, l); memcpy(packets, op2->packet, l);
context->buffer_index -= l + sizeof(ogg_packet); 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); // av_log(avccontext, AV_LOG_DEBUG, "E%d\n", l);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment