 AVC_PACKET_TYPE_SEQUENCE_HEADER = 0
 AVC_PACKET_TYPE_NALU            = 1
 AVC_PACKET_TYPE_END_OF_SEQUENCE = 2
+
+EXTENDED_TIMESTAMP_TYPE_NOT_USED = 'not-used'
+EXTENDED_TIMESTAMP_TYPE_ABSOLUTE = 'absolute'
+EXTENDED_TIMESTAMP_TYPE_DELTA    = 'delta'
 
 TIMESTAMP_ROUNDOFF = 4294967296  # 32 bits
 

          break
        message.timestamp = (chunkMessageHeader[0] << 16) +
          (chunkMessageHeader[1] << 8) + chunkMessageHeader[2]
        message.timestampDelta = 0
        message.messageLength = (chunkMessageHeader[3] << 16) +
          (chunkMessageHeader[4] << 8) + chunkMessageHeader[5]

          break
        message.timestampDelta = (chunkMessageHeader[0] << 16) +
        (chunkMessageHeader[1] << 8) + chunkMessageHeader[2]

        if message.timestampDelta is 0xffffff
          message.extendedTimestampType = EXTENDED_TIMESTAMP_TYPE_DELTA
        else
          message.extendedTimestampType = EXTENDED_TIMESTAMP_TYPE_NOT_USED

        previousChunk = @previousChunkMessage[message.chunkStreamID]
        if previousChunk?
          message.timestamp = previousChunk.timestamp
