summaryrefslogtreecommitdiff
path: root/v4l2-apps/util/qv4l2/general-tab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/util/qv4l2/general-tab.cpp')
-rw-r--r--v4l2-apps/util/qv4l2/general-tab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l2-apps/util/qv4l2/general-tab.cpp b/v4l2-apps/util/qv4l2/general-tab.cpp
index 87a0f520d..93ab329ba 100644
--- a/v4l2-apps/util/qv4l2/general-tab.cpp
+++ b/v4l2-apps/util/qv4l2/general-tab.cpp
@@ -41,6 +41,8 @@ GeneralTab::GeneralTab(int _fd, int n, QWidget *parent) :
memset(&tuner, 0, sizeof(tuner));
ioctl(fd, VIDIOC_G_TUNER, &tuner);
+ if (tuner.rangehigh>INT_MAX)
+ tuner.rangehigh=INT_MAX;
struct v4l2_input vin;
memset(&vin, 0, sizeof(vin));