From baace56169a8cea7b44d727bdf656110aace011d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 22 Sep 2025 15:00:32 +0200 Subject: [PATCH] avfilter/vf_tonemap_opencl: Make array smaller Also makes the code more independent of AVCOL_TRC_NB. Reviewed-by: Niklas Haas Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_tonemap_opencl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_tonemap_opencl.c b/libavfilter/vf_tonemap_opencl.c index 26fc02923c..2c1b0a007d 100644 --- a/libavfilter/vf_tonemap_opencl.c +++ b/libavfilter/vf_tonemap_opencl.c @@ -70,12 +70,12 @@ typedef struct TonemapOpenCLContext { cl_mem util_mem; } TonemapOpenCLContext; -static const char *const linearize_funcs[AVCOL_TRC_NB] = { +static const char *const linearize_funcs[] = { [AVCOL_TRC_SMPTE2084] = "eotf_st2084", [AVCOL_TRC_ARIB_STD_B67] = "inverse_oetf_hlg", }; -static const char *const delinearize_funcs[AVCOL_TRC_NB] = { +static const char *const delinearize_funcs[] = { [AVCOL_TRC_BT709] = "inverse_eotf_bt1886", [AVCOL_TRC_BT2020_10] = "inverse_eotf_bt1886", };