static updateAV1CodecWithCOLRBox(codec, reader) {
    const Mp4BoxParsers = shaka.util.Mp4BoxParsers;
    const initialPosition = reader.getPosition();
    const data = reader.readBytes(4);
    let colorType = '';
    colorType += String.fromCharCode(data[0]);
    colorType += String.fromCharCode(data[1]);
    colorType += String.fromCharCode(data[2]);
    colorType += String.fromCharCode(data[3]);
    if (colorType === 'nclx') {
      const colorPrimaries = reader.readUint16();
      const transferCharacteristics = reader.readUint16();
      const matrixCoefficients = reader.readUint16();
      const videoFullRangeFlag = reader.readUint8() >> 7;
      const codecParts = codec.split('.');
      if (codecParts.length == 10) {
        codecParts[6] = Mp4BoxParsers.addLeadingZero_(colorPrimaries);
        codecParts[7] = Mp4BoxParsers.addLeadingZero_(transferCharacteristics);
        codecParts[8] = Mp4BoxParsers.addLeadingZero_(matrixCoefficients);
        codecParts[9] = String(videoFullRangeFlag);
        codec = codecParts.join('.');
      }
    }
    reader.seek(initialPosition);
    return codec;
  }
Parses AV1 codec string with COLR box information.

AV1 codec info: https://aomediacodec.github.io/av1-isobmff/#codecsparam

@param {string} codec
@param {!shaka.util.DataViewReader} reader
@return {string}