From 1d6efe8e23afcbe9d106fa3afb360cebd9516bc5 Mon Sep 17 00:00:00 2001 From: mglocker Date: Wed, 6 Nov 2019 05:46:51 +0000 Subject: [PATCH] Tested a Logitech Webcam C930e which has 17 frame sizes but video(1) only supports 16 today. Bump the array to 32 which makes 1920x1080 work on this device as well. OK deraadt --- app/video/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/video/video.c b/app/video/video.c index c32ab7327..5ee0628be 100644 --- a/app/video/video.c +++ b/app/video/video.c @@ -1,4 +1,4 @@ -/* $OpenBSD: video.c,v 1.28 2019/02/25 12:34:35 rapha Exp $ */ +/* $OpenBSD: video.c,v 1.29 2019/11/06 05:46:51 mglocker Exp $ */ /* * Copyright (c) 2010 Jacob Meuser * @@ -128,7 +128,7 @@ struct dim { struct dev { char path[FILENAME_MAX]; int fd; -#define MAX_DSZS 16 +#define MAX_DSZS 32 struct dim sizes[MAX_DSZS]; #define MAX_RATES 32 int rates[MAX_DSZS][MAX_RATES];