avcodec/libdav1d: explicitly set Dav1dSettings.apply_grain
Don't depend on its default value being 1, as that could change anytime. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
f480c43dfa
commit
6c4074e423
@ -230,8 +230,8 @@ static av_cold int libdav1d_init(AVCodecContext *c)
|
||||
s.frame_size_limit = c->max_pixels;
|
||||
if (dav1d->apply_grain >= 0)
|
||||
s.apply_grain = dav1d->apply_grain;
|
||||
else if (c->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN)
|
||||
s.apply_grain = 0;
|
||||
else
|
||||
s.apply_grain = !(c->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN);
|
||||
|
||||
s.all_layers = dav1d->all_layers;
|
||||
if (dav1d->operating_point >= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user