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>
This commit is contained in:
Michael Niedermayer 2014-10-16 15:05:17 +02:00
parent ed3efbcd0c
commit 4f1a252fd3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {