mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
mxfdemux: Create index table arrays with a big enough size
This commit is contained in:
parent
3a1912f88c
commit
16fc8541b5
1 changed files with 2 additions and 2 deletions
|
@ -1804,7 +1804,7 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
|
|||
index.dts = dts;
|
||||
index.keyframe = keyframe;
|
||||
if (etrack->offsets->len < etrack->position)
|
||||
g_array_set_size (etrack->offsets, etrack->position);
|
||||
g_array_set_size (etrack->offsets, etrack->position + 1);
|
||||
g_array_insert_val (etrack->offsets, etrack->position, index);
|
||||
}
|
||||
}
|
||||
|
@ -3667,7 +3667,7 @@ collect_index_table_segments (GstMXFDemux * demux)
|
|||
pts_i = start + i + temporal_offset;
|
||||
|
||||
if (t->offsets->len < pts_i)
|
||||
g_array_set_size (t->offsets, pts_i);
|
||||
g_array_set_size (t->offsets, pts_i + 1);
|
||||
|
||||
index = &g_array_index (t->offsets, GstMXFDemuxIndex, pts_i);
|
||||
if (!index->initialized) {
|
||||
|
|
Loading…
Reference in a new issue