mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/libdav1d: signal the presence of Film Grain in the decoder context
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
590a7e02f0
commit
651fed3860
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user