summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorKevin Wheatley <kevin.j.wheatley@gmail.com>2015-09-01 12:35:55 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-10 23:53:05 +0200
commita1fa5392e63e1f5658e5365ce02a29a74f95fdbb (patch)
tree67d2c4614f4c648d4a4216422e728b8400935dc7 /libavcodec
parent7eb3233352f6ee7a8a81476b431573ad3013d5c9 (diff)
avcodec/exr: Mark up the decoded buffer as the appropriate transfer characteristic when applying one
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/exr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index d97cdc7cb9..3b6b245187 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -1309,6 +1309,9 @@ static int decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_INVALIDDATA;
}
+ if (s->apply_trc_type != AVCOL_TRC_UNSPECIFIED)
+ avctx->color_trc = s->apply_trc_type;
+
switch (s->compression) {
case EXR_RAW:
case EXR_RLE: