aom: Fix is_cdef_enabled in av1_alloc_cdef_buffers()

From 158761dfb40e77f3a54c3b14a596112837baa24b Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Thu, 14 Mar 2024 16:45:44 -0700
Subject: [PATCH] Fix is_cdef_enabled in av1_alloc_cdef_buffers()

Make the condition for is_cdef_enabled less strict in
av1_alloc_cdef_buffers(). Use !cm->tiles.single_tile_decoding instead of
!cm->tiles.large_scale because the code in
av1_decode_tg_tiles_and_wrapup() that calls av1_cdef_frame() or
av1_cdef_frame_mt() tests !cm->tiles.single_tile_decoding.

Bug: b:329485898
Bug: b:329810149
Bug: b:329813868
Bug: chromium:327882824
Bug: chromium:327698030
Bug: oss-fuzz:67057
Bug: oss-fuzz:67060
Change-Id: Iaedac01357c275ec7c3e89ad46ec1327be888d83
---
 av1/common/alloccommon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av1/common/alloccommon.c b/av1/common/alloccommon.c
index d42e0a786..e9a38c4a6 100644
--- a/av1/common/alloccommon.c
+++ b/av1/common/alloccommon.c
@@ -204,7 +204,7 @@ void av1_alloc_cdef_buffers(AV1_COMMON *const cm,
   const int is_num_workers_changed =
       cdef_info->allocated_num_workers != num_workers;
   const int is_cdef_enabled =
-      cm->seq_params->enable_cdef && !cm->tiles.large_scale;
+      cm->seq_params->enable_cdef && !cm->tiles.single_tile_decoding;
 
   // num-bufs=3 represents ping-pong buffers for top linebuf,
   // followed by bottom linebuf.