summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-11-10 11:54:40 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-11-10 11:54:40 +0000
commit2d60613ac3143123a1d395cdeb8cf1b16c641e75 (patch)
tree69335edd6ce8ffb18fda38d6aba7b26dcde68d30 /sys
parentcb7831960cd154cd7ad384300f2928ece337c8cc (diff)
One more replacement; 2 -> UVIDEO_SH_MIN_LEN
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/uvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index 78f0de6927b..9fca9cd6c81 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.90 2008/11/09 21:24:55 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.91 2008/11/10 11:54:39 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -1648,7 +1648,7 @@ uvideo_vs_decode_stream_header(struct uvideo_softc *sc, uint8_t *frame,
struct usb_video_stream_header *sh;
int sample_len;
- if (frame_size < 2)
+ if (frame_size < UVIDEO_SH_MIN_LEN)
/* frame too small to contain a valid stream header */
return (USBD_INVAL);