From 9775236ca1ca5046027da1ca031c911898b0eb4a Mon Sep 17 00:00:00 2001 From: Hui Su Date: Thu, 26 Jul 2018 16:10:08 -0700 Subject: [PATCH] Fix multi-thread encoder result test Fix multi-thread encoder result test induced by the prune_ref_frame_for_rect_partitions speed feature. BUG=webm:1552 Change-Id: Idc3b3759651f76285ffd90059c6a2846c4d91a00 --- vp9/encoder/vp9_encodeframe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index f3a4ae7fe..e1207fea7 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -4008,6 +4008,8 @@ static void rd_pick_partition(VP9_COMP *cpi, ThreadData *td, if (cpi->sf.adaptive_motion_search) load_pred_mv(x, ctx); pc_tree->split[i]->index = i; + if (cpi->sf.prune_ref_frame_for_rect_partitions) + pc_tree->split[i]->none.rate = INT_MAX; rd_pick_partition(cpi, td, tile_data, tp, mi_row + y_idx, mi_col + x_idx, subsize, &this_rdc, // A must split test here increases the number of sub -- 2.40.0