va: h265dec: Fix a temp var overflow bug when write pred weight table.
authorHe Junyan <junyan.he@intel.com>
Thu, 15 Jul 2021 13:32:54 +0000 (21:32 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Jul 2021 14:25:09 +0000 (14:25 +0000)
commit67d482f8fbdffc97d36d9e747e93dc3571965f2f
tree7605cec819286cd261120ed7b634cf5188a7aec4
parentbc09d8cc6669a6d3403139fae38c5b34a094773b
va: h265dec: Fix a temp var overflow bug when write pred weight table.

The temp guint8 var of delta_chroma_offset_l0 and delta_chroma_offset_l1
can not cover the full range of delta_chroma_weight_l0/1 in the slice
header. When overflow happens, the decoder result is wrong.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2412>
sys/va/gstvah265dec.c