mxfdemux: Only access the index table if it has enough elements

This commit is contained in:
Sebastian Dröge 2015-12-09 16:55:00 +02:00
parent 6e06f8c936
commit f2eaa68c90

View file

@ -1743,7 +1743,7 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
}
}
if (index_table) {
if (index_table && index_table->offsets->len > etrack->position) {
GstMXFDemuxIndex *index =
&g_array_index (index_table->offsets, GstMXFDemuxIndex,
etrack->position);