mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
h265parser: prevent to overrun chroma_weight_l0_flag
The index of elements cannot exceed or equal to the size of elements. https://bugzilla.gnome.org/show_bug.cgi?id=722101
This commit is contained in:
parent
d1877b0b95
commit
6587e924f1
1 changed files with 1 additions and 1 deletions
|
@ -1173,7 +1173,7 @@ gst_h265_slice_parse_pred_weight_table (GstH265SliceHdr * slice, NalReader * nr)
|
|||
READ_UE_ALLOWED (nr, p->luma_log2_weight_denom, 0, 7);
|
||||
|
||||
/* set default values */
|
||||
for (i = 0; i <= G_N_ELEMENTS (p->chroma_weight_l0_flag); i++) {
|
||||
for (i = 0; i < G_N_ELEMENTS (p->chroma_weight_l0_flag); i++) {
|
||||
p->chroma_weight_l0_flag[i] = 0;
|
||||
p->luma_offset_l0[i] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue