From cd65044000daab20a5239895662e1bdabd783c66 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Wed, 14 Aug 2024 11:26:25 +0300 Subject: [PATCH] [10bit] Fix second instance of satd shifting based on bit depth Already shifted in the base function --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 85f88c6b..68faa245 100644 --- a/src/image.c +++ b/src/image.c @@ -504,7 +504,7 @@ unsigned uvg_image_calc_satd(const uvg_picture *pic, pic_data, pic->stride, ref_data, - ref->stride) >> (UVG_BIT_DEPTH - 8); + ref->stride); } else { // Extrapolate pixels from outside the frame. @@ -550,7 +550,7 @@ unsigned uvg_image_calc_satd(const uvg_picture *pic, pic_data, pic->stride, ext_origin, - ext_s) >> (UVG_BIT_DEPTH - 8); + ext_s); return satd; }