mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mxfdemux: Fix integer overflow in partition position comparison function
This commit is contained in:
parent
bd8809f9d7
commit
9091e746e5
1 changed files with 6 additions and 1 deletions
|
@ -374,7 +374,12 @@ static gint
|
|||
gst_mxf_demux_partition_compare (GstMXFDemuxPartition * a,
|
||||
GstMXFDemuxPartition * b)
|
||||
{
|
||||
return (a->partition.this_partition - b->partition.this_partition);
|
||||
if (a->partition.this_partition < b->partition.this_partition)
|
||||
return -1;
|
||||
else if (a->partition.this_partition > b->partition.this_partition)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue