finish encoding_mdr_I