mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avcodec/gdv: Optimize unscaled loop
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f2e2456294
commit
2d580d727c
1 changed files with 2 additions and 4 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue