Commit 60d375ca authored by Frank Bossen's avatar Frank Bossen Committed by Yushin Cho

Return correct RDO cost when selecting no split

parent 8ce41379
......@@ -1667,6 +1667,8 @@ fn encode_partition_bottomup(seq: &Sequence, fi: &FrameInvariants, fs: &mut Fram
// Recode the full block if it is more efficient
if !must_split && nosplit_rd_cost < rd_cost {
rd_cost = nosplit_rd_cost;
cw.rollback(&cw_checkpoint);
w_pre_cdef.rollback(&w_pre_checkpoint);
w_post_cdef.rollback(&w_post_checkpoint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment