Codec instantiated based on this.codec