Commit fe78ff981f for aom

commit fe78ff981f024c80eef92b3d683dcc306ca733cf
Author: James Zern <jzern@google.com>
Date:   Tue Mar 24 14:09:13 2026 -0700

    encode_api_test.cc: fix Visual Studio warnings

    Use a ternary rather than the result of a comparison to set the maximum
    monochrome value in a loop.

    After:
      a749f280b3 av1 encoder: reject unequal UV strides

    Fixes:
    ```
      test\encode_api_test.cc(240,33):
            warning C4804: '<=': unsafe use of type 'bool' in operation
      test\encode_api_test.cc(240,45):
        warning C4018: '<=': signed/unsigned mismatch
    ```

    Bug: 492213293
    Change-Id: I950ce67da5969d9efbab5963520a457c6ab3f6fb

diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index 914d783ed5..0dd0af183e 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -237,7 +237,8 @@ TEST(EncodeAPI, InvalidUVStrides) {
     cfg.g_h = kHeight;
     cfg.g_bit_depth = high_bit_depth ? AOM_BITS_10 : AOM_BITS_8;
     // Monochrome is not allowed in profile 1.
-    for (cfg.monochrome = 0; cfg.monochrome <= (cfg.g_profile != 1);
+    const unsigned int max_monochrome = (cfg.g_profile == 1) ? 0u : 1u;
+    for (cfg.monochrome = 0; cfg.monochrome <= max_monochrome;
          ++cfg.monochrome) {
       ASSERT_EQ(
           aom_codec_enc_init(&enc, aom_codec_av1_cx(), &cfg,