mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
glcolorconvert: don't overread the end of an array
Reverse index iteration needs a - 1 for the initial value. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6595>
This commit is contained in:
parent
97b45246d1
commit
7016a96bfe
1 changed files with 1 additions and 1 deletions
|
@ -2604,7 +2604,7 @@ _init_convert (GstGLColorConvert * convert)
|
|||
info->cms_coeff3);
|
||||
}
|
||||
|
||||
for (i = info->in_n_textures; i >= 0; i--) {
|
||||
for (i = info->in_n_textures - 1; i >= 0; i--) {
|
||||
if (info->shader_tex_names[i])
|
||||
gst_gl_shader_set_uniform_1i (convert->shader, info->shader_tex_names[i],
|
||||
i);
|
||||
|
|
Loading…
Reference in a new issue