aom: Update progressive test to catch more crash case (63d6d)

From 63d6df214dbb2a9daa35191539879b9d59cb8c10 Mon Sep 17 00:00:00 2001
From: Yuan Tong <[EMAIL REDACTED]>
Date: Wed, 8 Mar 2023 16:29:52 +0800
Subject: [PATCH] Update progressive test to catch more crash case

Update AVIFProgressiveTest.DimensionChangeLargeImageMultiThread to also catch the crash fixed by Ib3d2a123b159898d7c7e19c81e89ff148920e1f1.

BUG: aomedia:3382
Change-Id: I5a65578c7793fdac96c2d41cd71d63a75f7b0d1d
(cherry picked from commit 00392c6223ac9aefc29e0d67929a943836ad8daf)
---
 test/avif_progressive_test.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/avif_progressive_test.cc b/test/avif_progressive_test.cc
index 2a28ca368b..59aebd486f 100644
--- a/test/avif_progressive_test.cc
+++ b/test/avif_progressive_test.cc
@@ -225,8 +225,6 @@ TEST(AVIFProgressiveTest, DimensionChangeLargeImageMultiThread) {
   aom_codec_ctx_t enc;
   EXPECT_EQ(AOM_CODEC_OK, aom_codec_enc_init(&enc, iface, &cfg, 0));
   EXPECT_EQ(AOM_CODEC_OK, aom_codec_control(&enc, AOME_SET_CQ_LEVEL, 31));
-  EXPECT_EQ(AOM_CODEC_OK,
-            aom_codec_control(&enc, AOME_SET_NUMBER_SPATIAL_LAYERS, 2));
   EXPECT_EQ(AOM_CODEC_OK, aom_codec_control(&enc, AOME_SET_CPUUSED, 6));
   EXPECT_EQ(AOM_CODEC_OK,
             aom_codec_control(&enc, AV1E_SET_ROW_MT, 1));  // MultiThread
@@ -234,6 +232,8 @@ TEST(AVIFProgressiveTest, DimensionChangeLargeImageMultiThread) {
             aom_codec_control(&enc, AV1E_SET_COLOR_RANGE, AOM_CR_FULL_RANGE));
   EXPECT_EQ(AOM_CODEC_OK,
             aom_codec_control(&enc, AOME_SET_TUNING, AOM_TUNE_SSIM));
+  EXPECT_EQ(AOM_CODEC_OK,
+            aom_codec_control(&enc, AOME_SET_NUMBER_SPATIAL_LAYERS, 2));
 
   // First frame (layer 0)
   EXPECT_EQ(AOM_CODEC_OK,