From fcbdf01a25c0bae1bfc9c22cdfdc519bebd53169 Mon Sep 17 00:00:00 2001 From: siivonek Date: Thu, 21 Jul 2022 16:27:48 +0300 Subject: [PATCH] [isp] Do not filter references if ISP is used. --- src/intra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intra.c b/src/intra.c index 0611d3f1..df7a971b 100644 --- a/src/intra.c +++ b/src/intra.c @@ -928,7 +928,7 @@ static void intra_predict_regular( uint8_t multi_ref_index = color == COLOR_Y ? multi_ref_idx : 0; const uvg_intra_ref *used_ref = &refs->ref; - if (cfg->intra_smoothing_disabled || color != COLOR_Y || mode == 1 || (width == 4 && height == 4) || multi_ref_index) { + if (cfg->intra_smoothing_disabled || color != COLOR_Y || mode == 1 || (width == 4 && height == 4) || multi_ref_index || width != height /*Fake ISP*/) { // For chroma, DC and 4x4 blocks, always use unfiltered reference. } else if (mode == 0) { // Otherwise, use filtered for planar.