avfilter/vf_noise: Use a separate seed for each plane

This should reduce the correlation between planes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/89/head
Michael Niedermayer 10 years ago
parent ed3efbcd0c
commit 4f1a252fd3
  1. 2
      libavfilter/vf_noise.c

@ -110,7 +110,7 @@ static av_cold int init_noise(NoiseContext *n, int comp)
if (!noise)
return AVERROR(ENOMEM);
av_lfg_init(&fp->lfg, fp->seed);
av_lfg_init(&fp->lfg, fp->seed + comp*31415U);
for (i = 0, j = 0; i < MAX_NOISE; i++, j++) {
if (flags & NOISE_UNIFORM) {

Loading…
Cancel
Save