diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-09-23 18:16:26 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-10-08 10:11:59 +0800 |
commit | 00ec682a7015dd6f4b441bcc599c3fb2d60264a8 (patch) | |
tree | ba63ce984b5f77e07433959e0a7476969e4af816 | |
parent | 9997047a1802b5174e423cf0863041639664ab87 (diff) | |
download | ffmpeg-00ec682a7015dd6f4b441bcc599c3fb2d60264a8.tar.gz |
avcodec/hevcdec: set the film grain property if present
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r-- | libavcodec/hevcdec.c | 3 |
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; } |