Commit 6a4788e7 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/gdv: Replace loop in gdv_decode_frame() by memcpy()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5f84fbce
......@@ -479,9 +479,7 @@ static int gdv_decode_frame(AVCodecContext *avctx, void *data,
for (y = 0; y < avctx->height; y++) {
if (!gdv->scale_v) {
for (x = 0; x < avctx->width; x++) {
dst[didx + x] = gdv->frame[sidx + x];
}
memcpy(dst + didx, gdv->frame + sidx, avctx->width);
} else {
for (x = 0; x < avctx->width; x++) {
dst[didx + x] = gdv->frame[sidx + x/2];
......
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