tech-multimedia archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: uvideo webcam on big-endian systems



On Thu, 2010-12-23 at 09:39 +0000, Jeremy Morse wrote:
> The attached uvideo_mset.diff should rule out one of them:

...which I didn't properly test. The attached uvideo_mset2.diff will
compile correctly.

--
Thanks,
Jeremy

Index: uvideo.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uvideo.c,v
retrieving revision 1.32
diff -u -p -u -p -r1.32 uvideo.c
--- uvideo.c    3 Nov 2010 22:34:24 -0000       1.32
+++ uvideo.c    23 Dec 2010 09:38:43 -0000
@@ -1776,6 +1776,8 @@ uvideo_stream_recv_process(struct uvideo
        payload.frameno = hdr->bmHeaderInfo & UV_FRAME_ID;
        payload.end_of_frame = hdr->bmHeaderInfo & UV_END_OF_FRAME;
 
+       memset((buf + hdr->bHeaderLength), 0, payload.size);
+
        video_submit_payload(vs->vs_parent->sc_videodev, &payload);
 
        return USBD_NORMAL_COMPLETION;

Attachment: signature.asc
Description: This is a digitally signed message part



Home | Main Index | Thread Index | Old Index