Commit d152ab1d authored by He Junyan's avatar He Junyan Committed by GStreamer Marge Bot
Browse files

libs: decoder: av1: Clean the film_grain_info field.

We need to clean all film_grain_info fields when the film grain
feature is not enabled. It may have random data because the picture
parameter buffer is not cleaned.

Part-of: <!434>
parent 310ffc17
Pipeline #351395 waiting for manual action with stages
in 10 minutes and 36 seconds
......@@ -372,9 +372,10 @@ av1_fill_film_grain_info (VADecPictureParameterBufferAV1 * pic_param,
{
guint i;
if (!frame_header->film_grain_params.apply_grain)
if (!frame_header->film_grain_params.apply_grain) {
memset (&pic_param->film_grain_info, 0, sizeof (VAFilmGrainStructAV1));
return;
}
#define COPY_FILM_GRAIN_FIELD(FP) \
pic_param->SUB_FIELD.FP = (frame_header)->film_grain_params.FP
#define SUB_FIELD film_grain_info.film_grain_info_fields.bits
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment