videoblend: Avoid assigning a negative value to a guint
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 10 Oct 2014 17:49:29 +0000 (18:49 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Sat, 11 Oct 2014 18:10:46 +0000 (19:10 +0100)
commit3f5b9c4c8b8e31fb833dce99dfe6539e76d3be44
treea34f90efc22971dfcaa62693fe9a8c6a4b12661b
parent1cc311156cc3908d1d9888fbcda67305fc647337
videoblend: Avoid assigning a negative value to a guint

There are some few but certain conditions where it is possible for the
dest_width to be smaller than x. So we check this before assigning a negative
value to src_width, which is a unsigned and would be promoted to a number that
can segfault videoblend.

https://bugzilla.gnome.org/show_bug.cgi?id=738242
gst-libs/gst/video/video-blend.c