there reorder fields in the struct to make it shorter on 64 bit archs.
panic reported by jasper@
thanks to miod@ for helping me debug this down
-/* $OpenBSD: uvideo.h,v 1.29 2008/08/24 11:43:00 mglocker Exp $ */
+/* $OpenBSD: uvideo.h,v 1.30 2008/08/26 21:52:48 mglocker Exp $ */
/*
* Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
struct uvideo_format_group {
uint32_t pixelformat;
- struct uvideo_format_desc *format;
uint8_t format_dfidx;
+ struct uvideo_format_desc *format;
/* frame descriptors for mjpeg and uncompressed are identical */
#define UVIDEO_MAX_FRAME 16
- int frame_num;
struct usb_video_frame_mjpeg_desc *frame_cur;
struct usb_video_frame_mjpeg_desc *frame[UVIDEO_MAX_FRAME];
-} __packed;
+ int frame_num;
+};
struct uvideo_res {
int width;