summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);