diff options
| author | 沈玴興 <[email protected]> | 2026-03-07 10:46:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-07 10:46:38 +0800 |
| commit | 0a45308a296251e4376815b21f89f0038c75a60e (patch) | |
| tree | 0960e02010938cfaafa12fd292144694d87ba4a1 /src | |
| parent | e4a55152be9ae5fb8efebbb5ef197a2d3097b6cc (diff) | |
Update src/class/video/video_device.c
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/video/video_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c index 0f7d6b53b..85ffcd627 100644 --- a/src/class/video/video_device.c +++ b/src/class/video/video_device.c @@ -771,7 +771,7 @@ static bool _open_vc_itf(uint8_t rhport, videod_interface_t *self, uint_fast8_t TU_ASSERT(vc->ctl.bInCollection <= CFG_TUD_VIDEO_STREAMING); /* Update to point the end of the video control interface descriptor. */ - end = _end_of_control_descriptor(cur) + 7; + end = (uint8_t const *) _end_of_control_descriptor(cur) + sizeof(tusb_desc_endpoint_t); /* Advance to the next descriptor after the class-specific VC interface header descriptor. */ cur += vc->std.bLength + vc->ctl.bLength; |
