1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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

This commit is contained in:
Kevin Wheatley 2015-09-01 12:35:55 +01:00 committed by Michael Niedermayer
parent 7eb3233352
commit a1fa5392e6

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: