[FFmpeg-cvslog] avcodec/hevcdec: set the film grain property if present

Limin Wang git at videolan.org
Fri Oct 8 05:24:38 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Thu Sep 23 18:16:26 2021 +0800| [00ec682a7015dd6f4b441bcc599c3fb2d60264a8] | committer: Limin Wang

avcodec/hevcdec: set the film grain property if present

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00ec682a7015dd6f4b441bcc599c3fb2d60264a8
---

 libavcodec/hevcdec.c | 3 +++
 1 file changed, 3 insertions(+)

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;
 }
 



More information about the ffmpeg-cvslog mailing list