mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
ed3efbcd0c
commit
4f1a252fd3
|
@ -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…
Reference in New Issue