[FFmpeg-cvslog] avcodec/exr: use lookuptable for alpha if there is no trc_func

Mark Reid git at videolan.org
Fri Nov 20 17:02:10 EET 2020


ffmpeg | branch: master | Mark Reid <mindmark at gmail.com> | Sun Nov  8 19:37:23 2020 -0800| [dd03d6554053ccd4c9bd85429d58c26fe4182de0] | committer: Anton Khirnov

avcodec/exr: use lookuptable for alpha if there is no trc_func

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd03d6554053ccd4c9bd85429d58c26fe4182de0
---

 libavcodec/exr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)];
                         }



More information about the ffmpeg-cvslog mailing list