diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-07-07 15:28:36 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-08-04 12:56:35 +0000 |
commit | b6dd9558a708e6961426db23863039ee1015e34d (patch) | |
tree | b562034cae0ac41ed3a0c43a999f83b9b3250cdd | |
parent | 94eb599b6995f8b8e6a132d553620f891e138129 (diff) | |
download | qtmultimedia-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.cpp | 2 |
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(); } |