From a1fa5392e63e1f5658e5365ce02a29a74f95fdbb Mon Sep 17 00:00:00 2001 From: Kevin Wheatley Date: Tue, 1 Sep 2015 12:35:55 +0100 Subject: avcodec/exr: Mark up the decoded buffer as the appropriate transfer characteristic when applying one --- libavcodec/exr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/exr.c') diff --git a/libavcodec/exr.c b/libavcodec/exr.c index d97cdc7..3b6b245 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: -- cgit v1.1