This should not be in this class but in the codec itself