Module: libav Branch: master Commit: ce1a99d870c05b639512920cd3a1dee3e41d323f
Author: Vittorio Giovara <vittorio.giov...@gmail.com> Committer: Vittorio Giovara <vittorio.giov...@gmail.com> Date: Thu Jul 20 14:43:53 2017 +0200 hevc: Make sure to update the current frame transfer characteristic Otherwise the first decoded frame will still be tagged with the original transfer instead of the alternative one. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/hevcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index ac0b1a3..f6bbb70 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -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; _______________________________________________ libav-commits mailing list libav-commits@libav.org https://lists.libav.org/mailman/listinfo/libav-commits