# aom: Update progressive test to catch more crash case

**URL:** <https://discourse.libsdl.org/t/aom-update-progressive-test-to-catch-more-crash-case/51402>\
**Category:** SDL Commits\
**Created:** [May 23, 2024, 8:59pm UTC](https://discourse.libsdl.org/t/aom-update-progressive-test-to-catch-more-crash-case/51402 "2024-05-23T20:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [May 23, 2024, 8:59pm UTC](https://discourse.libsdl.org/t/aom-update-progressive-test-to-catch-more-crash-case/51402/1 "2024-05-23T20:59:38Z")

</div>

> <https://github.com/libsdl-org/aom/commit/00392c6223ac9aefc29e0d67929a943836ad8daf>
>
> Update AVIFProgressiveTest.DimensionChangeLargeImageMultiThread to also catch th…e crash fixed by Ib3d2a123b159898d7c7e19c81e89ff148920e1f1.
> 
> BUG: aomedia:3382
> Change-Id: I5a65578c7793fdac96c2d41cd71d63a75f7b0d1d

```diff
From 00392c6223ac9aefc29e0d67929a943836ad8daf 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
---
 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,

```
