summaryrefslogtreecommitdiff
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-27 20:51:14 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-27 20:51:14 +0000
commit94ad38e2e8a50e8b661bd2dc40a77e91d3b79792 (patch)
treefcd87ef3f56b9cdd578f20ac972988d95b719d56 /libavcodec/dpx.c
parent6a574942040c85f170e1a51618c84ecba0ce6b97 (diff)
downloadffmpeg-94ad38e2e8a50e8b661bd2dc40a77e91d3b79792.tar.gz
dpx: use av_image_copy_plane()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r--libavcodec/dpx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 2fd5bdc879..a910eac5d0 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -244,11 +244,9 @@ static int decode_frame(AVCodecContext *avctx,
case 16:
elements *= 2;
case 8:
- for (x = 0; x < avctx->height; x++) {
- memcpy(ptr[0], buf, elements*avctx->width);
- ptr[0] += p->linesize[0];
- buf += elements*avctx->width;
- }
+ av_image_copy_plane(ptr[0], p->linesize[0],
+ buf, elements * avctx->width,
+ elements * avctx->width, avctx->height);
break;
}