frontends/omx: initialize film_grain_target
authorRuijing Dong <ruijing.dong@amd.com>
Fri, 2 Dec 2022 21:02:12 +0000 (16:02 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Dec 2022 21:59:24 +0000 (21:59 +0000)
set film_grain_target to NULL, and not using it
in omx path.

CC: 22.3
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20139>

src/gallium/frontends/omx/bellagio/vid_dec_av1.c

index a0a407c..7aab606 100644 (file)
@@ -1638,6 +1638,7 @@ static void frame_header_obu(vid_dec_PrivateType *priv, struct vl_vlc *vlc)
 
    film_grain_params(priv, vlc);
 
+   priv->picture.av1.film_grain_target = NULL;
    priv->picture.av1.picture_parameter.pic_info_fields.frame_type = hdr->frame_type;
    priv->picture.av1.picture_parameter.pic_info_fields.show_frame = hdr->show_frame;
    priv->picture.av1.picture_parameter.pic_info_fields.error_resilient_mode =