diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 8275add38e..06a7af425c 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -900,6 +900,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);