You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dpx: use av_image_copy_plane()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user