mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/exr: use lookuptable for alpha if there is no trc_func
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
104e5233f0
commit
dd03d65540
@ -1203,7 +1203,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
|
||||
}
|
||||
} else if (s->pixel_type == EXR_HALF) {
|
||||
// 16-bit
|
||||
if (c < 3) {
|
||||
if (c < 3 || !trc_func) {
|
||||
for (x = 0; x < xsize; x++) {
|
||||
*ptr_x++ = s->gamma_table[bytestream_get_le16(&src)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user