mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mxfdemux: Only access the index table if it has enough elements
This commit is contained in:
parent
6e06f8c936
commit
f2eaa68c90
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue