From eaa2b3d4be8053c732910054d0f498eade22b7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 8 Dec 2025 03:48:08 +0100 Subject: [PATCH] avcodec/libsvtav1: add explicit enum cast to suppress compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- libavcodec/libsvtav1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index 0e3e748b8d..7047b72422 100644 --- a/libavcodec/libsvtav1.c +++ b/libavcodec/libsvtav1.c @@ -241,10 +241,10 @@ static int config_enc_params(EbSvtAv1EncConfiguration *param, } desc = av_pix_fmt_desc_get(avctx->pix_fmt); - param->color_primaries = avctx->color_primaries; - param->matrix_coefficients = (desc->flags & AV_PIX_FMT_FLAG_RGB) ? - AVCOL_SPC_RGB : avctx->colorspace; - param->transfer_characteristics = avctx->color_trc; + param->color_primaries = (enum EbColorPrimaries)avctx->color_primaries; + param->matrix_coefficients = (enum EbMatrixCoefficients)((desc->flags & AV_PIX_FMT_FLAG_RGB) ? + AVCOL_SPC_RGB : avctx->colorspace); + param->transfer_characteristics = (enum EbTransferCharacteristics)avctx->color_trc; if (avctx->color_range != AVCOL_RANGE_UNSPECIFIED) param->color_range = avctx->color_range == AVCOL_RANGE_JPEG;