Commit 40a87a6a authored by Paul B Mahol's avatar Paul B Mahol

lavfi/noise: use av_image_copy_plane()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 4cf7b875
......@@ -338,14 +338,8 @@ static void noise(uint8_t *dst, const uint8_t *src,
int shift, y;
if (!noise) {
if (dst != src) {
for (y = 0; y < height; y++) {
memcpy(dst, src, width);
dst += dst_linesize;
src += src_linesize;
}
}
if (dst != src)
av_image_copy_plane(dst, dst_linesize, src, src_linesize, width, height);
return;
}
......
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