summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author沈玴興 <[email protected]>2026-03-07 10:46:38 +0800
committerGitHub <[email protected]>2026-03-07 10:46:38 +0800
commit0a45308a296251e4376815b21f89f0038c75a60e (patch)
tree0960e02010938cfaafa12fd292144694d87ba4a1 /src
parente4a55152be9ae5fb8efebbb5ef197a2d3097b6cc (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.c2
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;