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
@ -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…
x
Reference in New Issue
Block a user