summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-07-07 15:28:36 +0200
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-08-04 12:56:35 +0000
commitb6dd9558a708e6961426db23863039ee1015e34d (patch)
treeb562034cae0ac41ed3a0c43a999f83b9b3250cdd
parent94eb599b6995f8b8e6a132d553620f891e138129 (diff)
downloadqtmultimedia-b6dd9558a708e6961426db23863039ee1015e34d.tar.gz
qtmultimedia-b6dd9558a708e6961426db23863039ee1015e34d.tar.bz2
qtmultimedia-b6dd9558a708e6961426db23863039ee1015e34d.zip
GStreamer: fix possible integer overflow in comparison.
Change-Id: I6cf4349f89320f72cce4d04cdf909476e583d11f Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinsession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp
index ed7e7d41..10217c1c 100644
--- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp
+++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp
@@ -1304,7 +1304,7 @@ static QPair<int,int> valueRange(const GValue *value, bool *continuous)
static bool resolutionLessThan(const QSize &r1, const QSize &r2)
{
- return r1.width()*r1.height() < r2.width()*r2.height();
+ return qlonglong(r1.width()) * r1.height() < qlonglong(r2.width()) * r2.height();
}