Allow use of the section header in determining the section codec

Encoding and decoding of the section may be dependent on values in the section header.