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>
continue;
for (j = 0; j < 2; j++) {
- gint8 delta_chroma_offset_l0 =
+ gint16 delta_chroma_offset_l0 =
header->pred_weight_table.delta_chroma_offset_l0[i][j];
gint chroma_offset;
continue;
for (j = 0; j < 2; j++) {
- gint8 delta_chroma_offset_l1 =
+ gint16 delta_chroma_offset_l1 =
header->pred_weight_table.delta_chroma_offset_l1[i][j];
gint chroma_offset;