projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ae2a5
)
mxfdemux: Fix integer overflow in partition position comparison function
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 5 Jul 2017 12:48:57 +0000
(15:48 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 5 Jul 2017 12:49:44 +0000
(15:49 +0300)
gst/mxf/mxfdemux.c
patch
|
blob
|
history
diff --git
a/gst/mxf/mxfdemux.c
b/gst/mxf/mxfdemux.c
index
d796e80
..
acde00d
100644
(file)
--- a/
gst/mxf/mxfdemux.c
+++ b/
gst/mxf/mxfdemux.c
@@
-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