Add missing sort to intra transform split search so mode at 0 is the best

This commit is contained in:
Ari Lemmetti 2017-11-04 19:58:07 +02:00
parent da6f21d47c
commit 0d5972bf03

View file

@ -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.