Skip to content

Commit eab1d0a

Browse files
lijunru-hubroma-jam
authored andcommitted
fix(video): fix uninitialized value
1 parent b339c84 commit eab1d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/class/video/video_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
607607
tusb_desc_cs_video_fmt_t const *fmt = _find_desc_format(tu_desc_next(vs), end, fmtnum);
608608
tusb_desc_cs_video_frm_t const *frm = _find_desc_frame(tu_desc_next(fmt), end, frmnum);
609609

610-
uint_fast32_t interval, interval_ms;
610+
uint_fast32_t interval = 0;
611+
uint_fast32_t interval_ms = 0;
611612
switch (request) {
612613
case VIDEO_REQUEST_GET_MAX: {
613614
uint_fast32_t min_interval, max_interval;

0 commit comments

Comments
 (0)