The IRS says: “For the year of the account owner’s death, use the RMD the account owner would have received. For the year following the owner’s death, the RMD will depend on the identity of the designated beneficiary.” If you are the designated beneficiary, as a surviving spouse you can choose to roll over the account to your own and figure RMDs for your own account.
Tax rules that tax the grantor of a trust on the trust income.