While only filler packets should be allowed, for good measure also skip
any other KLV packets in the range where there could be index table
segments.
This fixes parsing of partitions with multiple index table segments,
which are separated by a filler packet, or other packets.
return;
}
- while (mxf_is_index_table_segment (&key)) {
- gst_mxf_demux_handle_index_table_segment (demux, &key, buf, demux->offset);
+ while (demux->offset <
+ demux->run_in +
+ demux->current_partition->partition.this_partition +
+ demux->current_partition->partition.header_byte_count +
+ demux->current_partition->partition.index_byte_count) {
+ if (mxf_is_index_table_segment (&key)) {
+ gst_mxf_demux_handle_index_table_segment (demux, &key, buf,
+ demux->offset);
+ }
demux->offset += read;
gst_buffer_unref (buf);