avcodec/exr: don't remove Float2HalfTables tables alongside the deprecated gamma code

It's used by other parts of the module that will fail to build otherwise after
the aforementioned removal.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-11-02 00:20:18 -03:00
parent 5b98cea4bf
commit 7770c0bf0d

View File

@@ -196,9 +196,9 @@ typedef struct EXRContext {
enum AVColorTransferCharacteristic apply_trc_type;
float gamma;
uint16_t gamma_table[65536];
Float2HalfTables f2h_tables;
#endif
Float2HalfTables f2h_tables;
Half2FloatTables h2f_tables;
} EXRContext;
@@ -2300,9 +2300,9 @@ static av_cold int decode_init(AVCodecContext *avctx)
union av_intfloat32 t;
float one_gamma = 1.0f / s->gamma;
av_csp_trc_function trc_func = NULL;
ff_init_float2half_tables(&s->f2h_tables);
#endif
ff_init_float2half_tables(&s->f2h_tables);
ff_init_half2float_tables(&s->h2f_tables);
s->avctx = avctx;