[NORMATIVE] Film grain gauss values and update_parameters
BUG=aomedia:1474
BUG=aomedia:1347
Change-Id: I6ccd2562101906aeae521afbfb5e6aae6dac70b8
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index d53e3d0..b8bbecd 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -2155,15 +2155,10 @@
}
pars->random_seed = aom_rb_read_literal(rb, 16);
-
- pars->update_parameters = aom_rb_read_bit(rb);
-
- if (!pars->update_parameters && cm->frame_type != INTER_FRAME) {
- aom_internal_error(
- &cm->error, AOM_CODEC_UNSUP_BITSTREAM,
- "Film grain parameters prediction is only allowed in inter-frames");
- return;
- }
+ if (cm->frame_type == INTER_FRAME)
+ pars->update_parameters = aom_rb_read_bit(rb);
+ else
+ pars->update_parameters = 1;
#if CONFIG_FILM_GRAIN_SHOWEX
if (!pars->update_parameters) {