diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-07-20 14:43:53 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-07-21 20:44:05 +0200 |
commit | ce1a99d870c05b639512920cd3a1dee3e41d323f (patch) | |
tree | 00212442b4a84432f20c023fae84f16fca73389e /libavcodec | |
parent | 95ce02b35d3d1bb16111031df1d82a6e4d894d36 (diff) | |
download | ffmpeg-ce1a99d870c05b639512920cd3a1dee3e41d323f.tar.gz |
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.giovara@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevcdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index ac0b1a3c1d..f6bbb7051e 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; |