GStreamer: fix possible integer overflow in comparison.
Change-Id: I6cf4349f89320f72cce4d04cdf909476e583d11f Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -1304,7 +1304,7 @@ static QPair<int,int> valueRange(const GValue *value, bool *continuous)
|
|||||||
|
|
||||||
static bool resolutionLessThan(const QSize &r1, const QSize &r2)
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user