From ab25874e3245ef578d7b48200ba922a8ff253f28 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 24 Aug 2021 09:55:34 -0300 Subject: [PATCH] avcodec/h264_slice: signal the presence of Film Grain in the decoder context Signed-off-by: James Almer --- 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) {