Commit 4f1a252f authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_noise: Use a separate seed for each plane

This should reduce the correlation between planes
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ed3efbcd
......@@ -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) {
......
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