maximum image size. Fix it. Makes read(2) method work again.
-/* $OpenBSD: uvideo.c,v 1.62 2008/07/25 11:12:34 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.63 2008/07/25 17:20:27 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
DEVNAME(sc), __func__, r.width, r.height);
/* tell our sample buffer size */
- fmt->fmt.pix.sizeimage = sc->sc_sample_buffer.buf_size;
+ fmt->fmt.pix.sizeimage = UGETDW(sc->sc_desc_probe.dwMaxVideoFrameSize);
return (0);
}