Browse Source

lavfi/noise: use av_image_copy_plane()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.0
Paul B Mahol 12 years ago
parent
commit
40a87a6a69
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      libavfilter/vf_noise.c

+ 2
- 8
libavfilter/vf_noise.c View File

@@ -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;
}



Loading…
Cancel
Save