Commit 94ad38e2 authored by Paul B Mahol's avatar Paul B Mahol

dpx: use av_image_copy_plane()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6a574942
...@@ -244,11 +244,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -244,11 +244,9 @@ static int decode_frame(AVCodecContext *avctx,
case 16: case 16:
elements *= 2; elements *= 2;
case 8: case 8:
for (x = 0; x < avctx->height; x++) { av_image_copy_plane(ptr[0], p->linesize[0],
memcpy(ptr[0], buf, elements*avctx->width); buf, elements * avctx->width,
ptr[0] += p->linesize[0]; elements * avctx->width, avctx->height);
buf += elements*avctx->width;
}
break; break;
} }
......
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