diff options
author | Kevin Wheatley <kevin.j.wheatley@gmail.com> | 2015-09-01 12:35:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-10 23:53:05 +0200 |
commit | a1fa5392e63e1f5658e5365ce02a29a74f95fdbb (patch) | |
tree | 67d2c4614f4c648d4a4216422e728b8400935dc7 | |
parent | 7eb3233352f6ee7a8a81476b431573ad3013d5c9 (diff) | |
download | ffmpeg-a1fa5392e63e1f5658e5365ce02a29a74f95fdbb.tar.gz |
avcodec/exr: Mark up the decoded buffer as the appropriate transfer characteristic when applying one
-rw-r--r-- | libavcodec/exr.c | 3 |
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: |