avcodec/exr: Mark up the decoded buffer as the appropriate transfer characteristic...
authorKevin Wheatley <kevin.j.wheatley@gmail.com>
Tue, 1 Sep 2015 11:35:55 +0000 (12:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Sep 2015 21:53:05 +0000 (23:53 +0200)
libavcodec/exr.c

index d97cdc7..3b6b245 100644 (file)
@@ -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: