[FFmpeg-cvslog] avcodec/h264_slice: signal the presence of Film Grain in the decoder context

James Almer git at videolan.org
Tue Aug 24 16:10:32 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Aug 24 09:55:34 2021 -0300| [ab25874e3245ef578d7b48200ba922a8ff253f28] | committer: James Almer

avcodec/h264_slice: signal the presence of Film Grain in the decoder context

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/h264_slice.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 98ca8836db..3063ee069a 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1392,6 +1392,8 @@ static int h264_export_frame_props(H264Context *h)
                sizeof(fgp->codec.h274.comp_model_value));
 
         fgc->present = !!fgc->repetition_period;
+
+        h->avctx->properties |= FF_CODEC_PROPERTY_FILM_GRAIN;
     }
 
     if (h->sei.picture_timing.timecode_cnt > 0) {



More information about the ffmpeg-cvslog mailing list