vorbisdec: do not try to read past the buffer array

https://bugzilla.gnome.org/show_bug.cgi?id=662108
This commit is contained in:
Vincent Penquerc'h 2011-10-19 15:28:44 +01:00 committed by Mark Nauwelaerts
parent 43928e33e6
commit 1f900dc20d

View file

@ -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)