1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/hevcdec: set the film grain property if present

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2021-09-23 18:16:26 +08:00
parent 9997047a18
commit 00ec682a70

View File

@ -385,6 +385,9 @@ static int export_stream_params_from_sei(HEVCContext *s)
avctx->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
}
if (s->sei.film_grain_characteristics.present)
avctx->properties |= FF_CODEC_PROPERTY_FILM_GRAIN;
return 0;
}