mxfdemux: Fix integer overflow in partition position comparison function

This commit is contained in:
Sebastian Dröge 2017-07-05 15:48:57 +03:00
parent bd8809f9d7
commit 9091e746e5

View file

@ -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