From 0d5972bf03e261e9142d21a54cbd4901fbd1ff86 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Sat, 4 Nov 2017 19:58:07 +0200 Subject: [PATCH] Add missing sort to intra transform split search so mode at 0 is the best --- src/search_intra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/search_intra.c b/src/search_intra.c index f3d01454..46db40b6 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -623,6 +623,9 @@ static int8_t search_intra_rdo(encoder_state_t * const state, costs[rdo_mode] += mode_cost; } + // Update order according to new costs + sort_modes(modes, costs, modes_to_check); + // The best transform split hierarchy is not saved anywhere, so to get the // transform split hierarchy the search has to be performed again with the // best mode.