usb: Fix a few more warnings.

This commit is contained in:
lightningterror 2021-05-26 16:40:20 +02:00
parent 1b4c8991c8
commit 48961ed3df
3 changed files with 3 additions and 5 deletions

View File

@ -471,7 +471,7 @@ namespace usb_eyetoy
{
mpeg_mutex.lock();
int len2 = mpeg_buffer.length;
if (len < mpeg_buffer.length)
if ((unsigned int)len < mpeg_buffer.length)
len2 = len;
memcpy(buf, mpeg_buffer.start, len2);
mpeg_buffer.length = 0;

View File

@ -72,11 +72,11 @@ namespace usb_eyetoy
typedef void (*DShowVideoCaptureCallback)(unsigned char* data, int len, int bitsperpixel);
typedef struct
struct buffer_t
{
void* start = NULL;
size_t length = 0;
} buffer_t;
};
static const char* APINAME = "DirectShow";

View File

@ -456,8 +456,6 @@ namespace usb_eyetoy
memcpy(data, footer, sizeof(footer));
s->frame_step = 0;
}
send_packet:
usb_packet_copy(p, data, max_ep_size);
}
else if (devep == 2)