Update error messages in validate_img()
authorWan-Teh Chang <wtc@google.com>
Sat, 5 Feb 2022 20:14:37 +0000 (12:14 -0800)
committerWan-Teh Chang <wtc@google.com>
Sat, 5 Feb 2022 20:14:37 +0000 (12:14 -0800)
Change-Id: I4aa6d2e16e077d29e4e9eabfc7056fcfed6786d6

vp9/vp9_cx_iface.c

index 9f03ed1..7627443 100644 (file)
@@ -380,8 +380,8 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
     case VPX_IMG_FMT_I440:
       if (ctx->cfg.g_profile != (unsigned int)PROFILE_1) {
         ERROR(
-            "Invalid image format. I422, I444, I440, NV12 images are "
-            "not supported in profile.");
+            "Invalid image format. I422, I444, I440 images are not supported "
+            "in profile.");
       }
       break;
     case VPX_IMG_FMT_I42216:
@@ -396,8 +396,8 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
       break;
     default:
       ERROR(
-          "Invalid image format. Only YV12, I420, I422, I444 images are "
-          "supported.");
+          "Invalid image format. Only YV12, I420, I422, I444, I440, NV12 "
+          "images are supported.");
       break;
   }