diff options
author | James Almer <jamrial@gmail.com> | 2021-08-24 09:55:34 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-08-24 10:00:20 -0300 |
commit | ab25874e3245ef578d7b48200ba922a8ff253f28 (patch) | |
tree | 0973a25f6979738be09ce7c8dde84d9f35885189 /libavcodec | |
parent | 9b05263ac166924f28a2f4a65883629219fa6689 (diff) | |
download | ffmpeg-ab25874e3245ef578d7b48200ba922a8ff253f28.tar.gz |
avcodec/h264_slice: signal the presence of Film Grain in the decoder context
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264_slice.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |