Browse Source

avcodec/exr: Mark up the decoded buffer as the appropriate transfer characteristic when applying one

tags/n3.0
Kevin Wheatley Michael Niedermayer 10 years ago
parent
commit
a1fa5392e6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/exr.c

+ 3
- 0
libavcodec/exr.c View 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:


Loading…
Cancel
Save