From f212ce136912beb83e106cce2febeb33bb66dfd2 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 2 Aug 2024 14:45:20 +0300 Subject: [PATCH] [refwrap] Add ref_lcu dependancy to the rightmost lcu since refwrap will wrap around the frame --- src/encoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encoder.c b/src/encoder.c index 4b6b42d0..915bab42 100644 --- a/src/encoder.c +++ b/src/encoder.c @@ -244,6 +244,8 @@ encoder_control_t* uvg_encoder_control_init(const uvg_config *const cfg) encoder->max_inter_ref_lcu.right = 1; encoder->max_inter_ref_lcu.down = 1; + if (encoder->cfg.ref_wraparound) encoder->max_inter_ref_lcu.right = (encoder->cfg.width+LCU_LUMA_SIZE-1)>>LOG2_LCU_WIDTH; + int max_threads = encoder->cfg.threads; if (max_threads < 0) { max_threads = cfg_num_threads();