diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_v4l.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/input_v4l.c b/src/input/input_v4l.c index e67ea2dc9..1c32351b2 100644 --- a/src/input/input_v4l.c +++ b/src/input/input_v4l.c @@ -42,11 +42,10 @@ #define NUM_FRAMES 40 -#define NUM_RESOLUTIONS 5 static struct { int width; int height; -} resolutions[NUM_RESOLUTIONS] = { +} resolutions[] = { { 768, 576 }, { 640, 480 }, { 384, 288 }, @@ -54,6 +53,8 @@ static struct { { 160, 120 }, }; +#define NUM_RESOLUTIONS (sizeof(resolutions)/sizeof(resolutions[0])) + /* #define LOG */ |