mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user