Skip to content

Commit

Permalink
hevc: Make sure to update the current frame transfer characteristic
Browse files Browse the repository at this point in the history
Otherwise the first decoded frame will still be tagged with the
original transfer instead of the alternative one.

Signed-off-by: Vittorio Giovara <[email protected]>
  • Loading branch information
kodawah committed Jul 21, 2017
1 parent 95ce02b commit ce1a99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/hevcdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ static int set_side_data(HEVCContext *s)
if (s->sei.alternative_transfer.present &&
av_color_transfer_name(s->sei.alternative_transfer.preferred_transfer_characteristics) &&
s->sei.alternative_transfer.preferred_transfer_characteristics != AVCOL_TRC_UNSPECIFIED) {
s->avctx->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
s->avctx->color_trc = out->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
}

return 0;
Expand Down

0 comments on commit ce1a99d

Please sign in to comment.