diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-12-09 16:55:00 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-12-09 16:55:00 +0200 |
commit | f2eaa68c902ae9035d9da39c5b66d3a798bfef7f (patch) | |
tree | dc8ff13b674dce4e6b1495e0c8e9e98476b4d603 /gst/mxf | |
parent | 6e06f8c93642d92e5cc4b769defb97df1897e791 (diff) | |
download | gstreamer-plugins-bad-f2eaa68c902ae9035d9da39c5b66d3a798bfef7f.tar.gz |
mxfdemux: Only access the index table if it has enough elements
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 8f04741dd..f8d52ed90 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -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); |