diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-04 20:22:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-05 22:36:12 +0100 |
commit | 2d580d727cf2f6e857a9e46fd2dcdee6473e7c3c (patch) | |
tree | 9df0ac9c50e2a8d06fd0845b1df2dfe377003175 /libavcodec | |
parent | f2e2456294663b86dd7b410a24bd60dcb21cc1b7 (diff) | |
download | ffmpeg-2d580d727cf2f6e857a9e46fd2dcdee6473e7c3c.tar.gz |
avcodec/gdv: Optimize unscaled loop
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/gdv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c index 538bc38e3e..132ec7288a 100644 --- a/libavcodec/gdv.c +++ b/libavcodec/gdv.c @@ -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]; } |