mxfdemux: Remove useless check

values will always be positive

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-05 11:41:54 +01:00 committed by GStreamer Marge Bot
parent 5bc4ebfe61
commit 67c4c35fb7

View file

@ -5061,8 +5061,7 @@ collect_index_table_segments (GstMXFDemux * demux)
MXFIndexEntry *entry = &s->index_entries[entidx];
gint8 offs = -entry->temporal_offset;
/* Check we don't exceed boundaries */
if ((start + entidx + entry->temporal_offset) < 0 ||
(start + entidx + entry->temporal_offset) >
if (start + entidx + entry->temporal_offset >
table->reverse_temporal_offsets->len) {
GST_ERROR_OBJECT (demux,
"Temporal offset exceeds boundaries. entry:%d offset:%d max:%d",