aom: Remove key_frame condition for using orig_source

From 1ba4539c26496e230e1aeeddcb997e41f82f495b Mon Sep 17 00:00:00 2001
From: Marco Paniconi <[EMAIL REDACTED]>
Date: Wed, 31 Jan 2024 22:00:36 +0000
Subject: [PATCH] Remove key_frame condition for using orig_source

This only affects the speed feature use_rtc_tf and
only when psnr is calculated.

To make it consistent with the removing key_frame
condition in this fix:
https://aomedia-review.googlesource.com/c/aom/+/186721

Change-Id: Ib5003db481dada07e2edcad26dfe6c9b78531329
---
 av1/encoder/encode_strategy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/av1/encoder/encode_strategy.c b/av1/encoder/encode_strategy.c
index a4497a865..65579f251 100644
--- a/av1/encoder/encode_strategy.c
+++ b/av1/encoder/encode_strategy.c
@@ -1702,8 +1702,7 @@ int av1_encode_strategy(AV1_COMP *const cpi, size_t *const size,
 
   // This is used in rtc temporal filter case. Use true source in the PSNR
   // calculation.
-  if (is_psnr_calc_enabled(cpi) && cpi->sf.rt_sf.use_rtc_tf &&
-      cpi->common.current_frame.frame_type != KEY_FRAME) {
+  if (is_psnr_calc_enabled(cpi) && cpi->sf.rt_sf.use_rtc_tf) {
     assert(cpi->orig_source.buffer_alloc_sz > 0);
     cpi->source = &cpi->orig_source;
   }