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

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


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Aug 16 12:09:39 2021 -0300| [651fed3860328e5c4eb3191ffc00b3a18074f90d] | committer: James Almer

avcodec/libdav1d: 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=651fed3860328e5c4eb3191ffc00b3a18074f90d
---

 libavcodec/libdav1d.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 8a816da34d..51e0980f6e 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -157,6 +157,11 @@ static void libdav1d_init_params(AVCodecContext *c, const Dav1dSequenceHeader *s
         if (seq->equal_picture_interval)
             c->ticks_per_frame = seq->num_ticks_per_picture;
     }
+
+   if (seq->film_grain_present)
+       c->properties |= FF_CODEC_PROPERTY_FILM_GRAIN;
+   else
+       c->properties &= ~FF_CODEC_PROPERTY_FILM_GRAIN;
 }
 
 static av_cold int libdav1d_parse_extradata(AVCodecContext *c)



More information about the ffmpeg-cvslog mailing list