diff options
author | Mark Reid <mindmark@gmail.com> | 2020-11-08 19:37:23 -0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-11-20 15:20:24 +0100 |
commit | dd03d6554053ccd4c9bd85429d58c26fe4182de0 (patch) | |
tree | b24218be614a6632dfd764f8c97dc351cdea0c6c /libavcodec/exr.c | |
parent | 104e5233f03f1ed3aa34b256cd2b9023a9076ffb (diff) | |
download | ffmpeg-dd03d6554053ccd4c9bd85429d58c26fe4182de0.tar.gz |
avcodec/exr: use lookuptable for alpha if there is no trc_func
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index cf7824402a..e907c5c464 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -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)]; } |