QCD from RMD/1099-r

My husband is 70 and has an inherited IRA (from mother who was 89 when passed and taking RMD from IRA).  Are direct contributions to charities considered QCD?  The 1099-r that we received has the full RMD amount listed in box 2a but box 2b is checked.  If QCD is allowed how do we report?