frontends/omx/h265: Check the pps set before the scaling data

Certain clip has no scaling list data in the pps set

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7240>
diff --git a/src/gallium/frontends/omx/bellagio/vid_dec_h265.c b/src/gallium/frontends/omx/bellagio/vid_dec_h265.c
index c50be78..1176669 100644
--- a/src/gallium/frontends/omx/bellagio/vid_dec_h265.c
+++ b/src/gallium/frontends/omx/bellagio/vid_dec_h265.c
@@ -598,6 +598,9 @@
       }
    }
 
+   if (vl_vlc_bits_left(&rbsp->nal) == 0)
+      return;
+
    /* pps_scaling_list_data_present_flag */
    if (vl_rbsp_u(rbsp, 1))
       scaling_list_data(priv, rbsp, sps);