2.2.2.1 Header

Before beginning decompression, the reader MUST read the HEADER field, as specified in section 2.1.3.1.1. If the value of the COMPTYPE field, as specified in section 2.1.3.1.1, is any value other than COMPRESSED or UNCOMPRESSED, then the reader MUST treat the input stream as corrupt.

If the value of the COMPTYPE field is COMPRESSED, then the reader MUST decompress the stream by using the decompression algorithm specified in section 2.2.3.2. If the value of the COMPTYPE field is UNCOMPRESSED, then the contents are uncompressed and the reader MUST copy the contents as-is to the output stream, as specified in section 2.2.3.1.