[FFmpeg-cvslog] hevc: Make sure to update the current frame transfer characteristic
Vittorio Giovara
git at videolan.org
Fri Jul 21 22:27:54 EEST 2017
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Jul 20 14:39:22 2017 +0200| [dc9735eb67ca696d926922735a9bf01776d5c328] | committer: Vittorio Giovara
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc9735eb67ca696d926922735a9bf01776d5c328
---
libavcodec/hevcdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index e084d75767..2306c51ed3 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;
More information about the ffmpeg-cvslog
mailing list