avcodec/hevcdec: set the film grain property if present

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/370/head
Limin Wang 3 years ago
parent 9997047a18
commit 00ec682a70
  1. 3
      libavcodec/hevcdec.c

@ -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…
Cancel
Save