From f2eaa68c902ae9035d9da39c5b66d3a798bfef7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 Dec 2015 16:55:00 +0200 Subject: [PATCH] mxfdemux: Only access the index table if it has enough elements --- gst/mxf/mxfdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 8f04741dde..f8d52ed90b 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);