diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-28 10:16:30 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-28 10:16:30 +0200 |
commit | ddd760f00f9f81948566b1ad65343d33738da8ee (patch) | |
tree | a7ed304a1caf13c34e2195f183a6b636dfdca48a /v4l2-apps/util | |
parent | 717a790849cefa1ed8c645580cac2bce0a7c8f84 (diff) | |
download | mediapointer-dvb-s2-ddd760f00f9f81948566b1ad65343d33738da8ee.tar.gz mediapointer-dvb-s2-ddd760f00f9f81948566b1ad65343d33738da8ee.tar.bz2 |
v4l2-dbg: if only the 'min' value is specified, then set max to min+0xff
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util')
-rw-r--r-- | v4l2-apps/util/v4l2-dbg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l2-apps/util/v4l2-dbg.cpp b/v4l2-apps/util/v4l2-dbg.cpp index e24ae7140..8323f2120 100644 --- a/v4l2-apps/util/v4l2-dbg.cpp +++ b/v4l2-apps/util/v4l2-dbg.cpp @@ -369,6 +369,8 @@ int main(int argc, char **argv) break; case 2: reg_min = strtoull(value, 0L, 0); + if (reg_max == 0) + reg_max = reg_min + 0xff; break; case 3: reg_max = strtoull(value, 0L, 0); |