diff options
Diffstat (limited to 'v4l2-apps')
-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); |