summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-07-20 14:39:22 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-07-21 20:07:40 +0200
commitdc9735eb67ca696d926922735a9bf01776d5c328 (patch)
treee2a8dc26bcfcffbb32b48a2375e5fc9f769afc71 /libavcodec/hevcdec.c
parent2e91a96d7bc94debc8082549ab856e03e6a767d7 (diff)
downloadffmpeg-streaming-dc9735eb67ca696d926922735a9bf01776d5c328.zip
ffmpeg-streaming-dc9735eb67ca696d926922735a9bf01776d5c328.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/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index e084d75..2306c51 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -2729,7 +2729,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;
OpenPOWER on IntegriCloud