diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-08-05 17:10:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-09-28 01:25:17 +0200 |
commit | 6a4788e7b31ae2382466048289dbba21b2dff3bb (patch) | |
tree | b8e710e836c3b0d2af49714564198b5f785f79bc | |
parent | 5f84fbce08769fb21d8459b81e9aad53635008b7 (diff) | |
download | ffmpeg-6a4788e7b31ae2382466048289dbba21b2dff3bb.tar.gz |
avcodec/gdv: Replace loop in gdv_decode_frame() by memcpy()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/gdv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c index aea15a88ef..1623febd1a 100644 --- a/libavcodec/gdv.c +++ b/libavcodec/gdv.c @@ -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]; |