forked from FFmpeg/FFmpeg
avcodec/hevcdec: set the film grain property if present
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
9997047a18
commit
00ec682a70
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue