From 481cc0de4bead37d6b8aaaaa81b5fee4d9dcd6a4 Mon Sep 17 00:00:00 2001 From: mglocker Date: Tue, 29 Jul 2008 13:45:04 +0000 Subject: [PATCH] The stream header length and flags field are uint8_t not int. --- sys/dev/usb/uvideo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index eb2807ed68c..b4f8e23dd94 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.64 2008/07/26 11:42:43 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.65 2008/07/29 13:45:04 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy @@ -1421,7 +1421,8 @@ uvideo_vs_decode_stream_header(struct uvideo_softc *sc, uint8_t *frame, int frame_size) { struct uvideo_sample_buffer *fb = &sc->sc_sample_buffer; - int header_len, header_flags, fragment_len; + uint8_t header_len, header_flags; + int fragment_len; if (frame_size < 2) /* frame too small to contain a valid stream header */ -- 2.20.1