diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-07-11 20:54:25 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-07-13 09:43:37 +0300 |
commit | dfbf187073a82288c6b51f591b3b82c37b2ffade (patch) | |
tree | 05826644efeb9926969e301f0b1d70acad476e57 /gst | |
parent | 9f9ff5e4fe8a22d5d51a7c8e8c617fade29f7f44 (diff) | |
download | gstreamer-plugins-bad-dfbf187073a82288c6b51f591b3b82c37b2ffade.tar.gz |
mxfdemux: Create index table arrays with a big enough size
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfdemux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 9f56ef2e4..71e6d51c2 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -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); } } @@ -3666,7 +3666,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) { |