aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-09-23 18:16:26 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-10-08 10:11:59 +0800
commit00ec682a7015dd6f4b441bcc599c3fb2d60264a8 (patch)
treeba63ce984b5f77e07433959e0a7476969e4af816 /libavcodec/hevcdec.c
parent9997047a1802b5174e423cf0863041639664ab87 (diff)
downloadffmpeg-00ec682a7015dd6f4b441bcc599c3fb2d60264a8.tar.gz
avcodec/hevcdec: set the film grain property if present
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 57a61752a3..b4edb3b3cc 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -385,6 +385,9 @@ static int export_stream_params_from_sei(HEVCContext *s)
avctx->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
}
+ if (s->sei.film_grain_characteristics.present)
+ avctx->properties |= FF_CODEC_PROPERTY_FILM_GRAIN;
+
return 0;
}