[NORMATIVE]Allow non-identical sequence headers This commit changes the reference code to allow additional sequence headers with different number of trailing 0 bits. Change-Id: Icbb1c9a834b438271456fcda9323a3212dd62784
diff --git a/av1/decoder/obu.c b/av1/decoder/obu.c index 3c73671..482b641 100644 --- a/av1/decoder/obu.c +++ b/av1/decoder/obu.c
@@ -800,12 +800,10 @@ seq_header_size = decoded_payload_size; seq_header_received = 1; } else { - // Seeing another sequence header, skip as all sequence headers - // are required to be identical. - if (payload_size != seq_header_size) { - cm->error.error_code = AOM_CODEC_CORRUPT_FRAME; - return -1; - } + // Seeing another sequence header, skip as all sequence headers are + // required to be identical except for the contents of + // operating_parameters_info and the amount of trailing bits. + // TODO(yaowu): verifying redundant sequence headers are identical. decoded_payload_size = seq_header_size; } break;