[FFmpeg-devel] [PATCH] hevc: Make sure to update the current frame transfer characteristic
Vittorio Giovara
vittorio.giovara at gmail.com
Thu Jul 20 15:40:19 EEST 2017
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 at gmail.com>
---
libavcodec/hevcdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 55f51211c3..ba1863381f 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -2728,7 +2728,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;
--
2.13.2
More information about the ffmpeg-devel
mailing list