Fix sending repeated random_seed in film grain
Enable denoising by default
BUG: aomedia:2146
Change-Id: I7917a5cfe97b324cc00487efa0bb9ed59cfe236b
diff --git a/aom_dsp/noise_model.c b/aom_dsp/noise_model.c
index 5975c62..2faee85 100644
--- a/aom_dsp/noise_model.c
+++ b/aom_dsp/noise_model.c
@@ -1135,7 +1135,9 @@
fprintf(stderr, "params.lag = %d > 3\n", noise_model->params.lag);
return 0;
}
+ uint16_t random_seed = film_grain->random_seed;
memset(film_grain, 0, sizeof(*film_grain));
+ film_grain->random_seed = random_seed;
film_grain->apply_grain = 1;
film_grain->update_parameters = 1;
@@ -1633,7 +1635,7 @@
return 0;
}
if (!film_grain->random_seed) {
- film_grain->random_seed = 1071;
+ film_grain->random_seed = 7391;
}
memcpy(raw_data[0], ctx->denoised[0],
(strides[0] * sd->y_height) << use_highbd);