diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index b8f83541c6..84ab0cefd7 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1092,6 +1092,9 @@ static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *seg { int i, length; + if (segment->temporal_offset_entries) + return AVERROR_INVALIDDATA; + segment->nb_index_entries = avio_rb32(pb); length = avio_rb32(pb);