mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-05 07:48:07 +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:
parent
9997047a18
commit
00ec682a70
@ -385,6 +385,9 @@ static int export_stream_params_from_sei(HEVCContext *s)
|
|||||||
avctx->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user