[FFmpeg-cvslog] dpx: use av_image_copy_plane()
Paul B Mahol
git at videolan.org
Sat Jul 27 22:54:19 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 27 20:51:14 2013 +0000| [94ad38e2e8a50e8b661bd2dc40a77e91d3b79792] | committer: Paul B Mahol
dpx: use av_image_copy_plane()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94ad38e2e8a50e8b661bd2dc40a77e91d3b79792
---
libavcodec/dpx.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 2fd5bdc..a910eac 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;
}
More information about the ffmpeg-cvslog
mailing list