aom: Add const to oxcf param of av1_check_fpmt_config()

From 8f107273cc641d3d4c260df122a21399b7e46a93 Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 13:13:33 -0700
Subject: [PATCH] Add const to oxcf param of av1_check_fpmt_config()

Change-Id: I291e38626f7225fccdb1311325e517ec69b30f6f
---
 av1/encoder/ethread.c | 5 +++--
 av1/encoder/ethread.h | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/av1/encoder/ethread.c b/av1/encoder/ethread.c
index 1d0092a5ed..356aa03275 100644
--- a/av1/encoder/ethread.c
+++ b/av1/encoder/ethread.c
@@ -1124,7 +1124,8 @@ void av1_terminate_workers(AV1_PRIMARY *ppi) {
 
 // This function returns 1 if frame parallel encode is supported for
 // the current configuration. Returns 0 otherwise.
-static AOM_INLINE int is_fpmt_config(AV1_PRIMARY *ppi, AV1EncoderConfig *oxcf) {
+static AOM_INLINE int is_fpmt_config(const AV1_PRIMARY *ppi,
+                                     const AV1EncoderConfig *oxcf) {
   // FPMT is enabled for AOM_Q and AOM_VBR.
   // TODO(Tarun): Test and enable resize config.
   if (oxcf->rc_cfg.mode == AOM_CBR || oxcf->rc_cfg.mode == AOM_CQ) {
@@ -1162,7 +1163,7 @@ static AOM_INLINE int is_fpmt_config(AV1_PRIMARY *ppi, AV1EncoderConfig *oxcf) {
 }
 
 int av1_check_fpmt_config(AV1_PRIMARY *const ppi,
-                          AV1EncoderConfig *const oxcf) {
+                          const AV1EncoderConfig *const oxcf) {
   if (is_fpmt_config(ppi, oxcf)) return 1;
   // Reset frame parallel configuration for unsupported config
   if (ppi->num_fp_contexts > 1) {
diff --git a/av1/encoder/ethread.h b/av1/encoder/ethread.h
index 468e120776..138811c8a3 100644
--- a/av1/encoder/ethread.h
+++ b/av1/encoder/ethread.h
@@ -122,7 +122,8 @@ int av1_compute_num_enc_workers(const AV1_COMP *cpi, int max_workers);
 
 int av1_compute_num_fp_contexts(AV1_PRIMARY *ppi, AV1EncoderConfig *oxcf);
 
-int av1_check_fpmt_config(AV1_PRIMARY *const ppi, AV1EncoderConfig *const oxcf);
+int av1_check_fpmt_config(AV1_PRIMARY *const ppi,
+                          const AV1EncoderConfig *const oxcf);
 
 void av1_compress_parallel_frames(AV1_PRIMARY *const ppi,
                                   AV1_COMP_DATA *const first_cpi_data);