This MR provides both lossy and lossless fix related to the ALF discussion in MR240. Class D is checked and RD is exactly the same as anchor (ECM-6.0). @XiangLi , Could you please check it based on MR240?