mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 03:23:16 +00:00
vorbisdec: do not try to read past the buffer array
https://bugzilla.gnome.org/show_bug.cgi?id=662108
This commit is contained in:
parent
43928e33e6
commit
1f900dc20d
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ vorbis_dec_handle_header_caps (GstVorbisDec * vd)
|
|||
GstBuffer *buf = NULL;
|
||||
gint i = 0;
|
||||
|
||||
while (result == GST_FLOW_OK) {
|
||||
while (result == GST_FLOW_OK && i < gst_value_array_get_size (array)) {
|
||||
value = gst_value_array_get_value (array, i);
|
||||
buf = gst_value_get_buffer (value);
|
||||
if (!buf)
|
||||
|
|
Loading…
Reference in a new issue