Commit 2d580d72 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/gdv: Optimize unscaled loop

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f2e24562
......@@ -470,12 +470,10 @@ static int gdv_decode_frame(AVCodecContext *avctx, void *data,
if (!gdv->scale_v && !gdv->scale_h) {
int sidx = PREAMBLE_SIZE, didx = 0;
int y, x;
int y;
for (y = 0; y < avctx->height; y++) {
for (x = 0; x < avctx->width; x++) {
dst[x+didx] = gdv->frame[x+sidx];
}
memcpy(dst + didx, gdv->frame + sidx, avctx->width);
sidx += avctx->width;
didx += frame->linesize[0];
}
......
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