From f8532a057acf7cbff1adfe6f4c67723fc24161fb Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Wed, 31 Jul 2024 12:34:35 +0300 Subject: [PATCH] oops --- src/search_intra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;