From 870171e6ad1e92c0aa0887ab9bbae1534616b579 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Tue, 20 Jan 2015 10:19:07 +0200 Subject: [PATCH] Fix --rd=0 actually work. --- src/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index d937d627..ea8a29cc 100644 --- a/src/search.c +++ b/src/search.c @@ -1884,8 +1884,8 @@ static double search_cu(encoder_state * const encoder_state, int x, int y, int d // This can be quite severe on bdrate. It might be better to do this // decision after reconstructing the inter frame. bool skip_intra = encoder_state->encoder_control->rdo == 0 - && cur_cu->type == CU_NOTSET - && cost / (cu_width * cu_width) >= INTRA_TRESHOLD; + && cur_cu->type != CU_NOTSET + && cost / (cu_width * cu_width) < INTRA_TRESHOLD; if (!skip_intra && WITHIN(depth, ctrl->pu_depth_intra.min, ctrl->pu_depth_intra.max)) {