summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2003-02-01 23:54:03 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2003-02-01 23:54:03 +0000
commit260ae0d2726f8a89f49f45ecd1fe819035b2090c (patch)
tree39208514fb3c1ee5c8a358027d519be5299f0c5c
parentc73fc4f42e423142a0c8006899f09d56e5eddf4d (diff)
downloadxine-lib-260ae0d2726f8a89f49f45ecd1fe819035b2090c.tar.gz
xine-lib-260ae0d2726f8a89f49f45ecd1fe819035b2090c.tar.bz2
- remove a magic number, thanks to Cameron Simpson <cs@zip.com.au>
CVS patchset: 4082 CVS date: 2003/02/01 23:54:03
-rw-r--r--src/input/input_v4l.c5
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
*/