diff --git a/src/search_intra.c b/src/search_intra.c index 1a81a0d8..e350fc65 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -464,7 +464,7 @@ static int8_t search_intra_rough(encoder_state_t * const state, double costs_out[PARALLEL_BLKS] = { 0 }; const int reduced_range = 8; int start_mode = previous_cu->intra.mode - reduced_range / 2; - int end_mode = previous_cu->intra.mode - reduced_range / 2; + int end_mode = previous_cu->intra.mode + reduced_range / 2; for (int mode = start_mode; mode < end_mode; mode += offset * 2) { for (int i = 0; i < PARALLEL_BLKS; ++i) { int clipped_mode = mode + i * offset;