Skip to content

Commit 7c8b116

Browse files
lijunru-hubroma-jam
authored andcommitted
fix(video): fix uninitialized value
1 parent 6953f8e commit 7c8b116

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
@@ -609,7 +609,8 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
609609
tusb_desc_cs_video_fmt_t const *fmt = _find_desc_format(tu_desc_next(vs), end, fmtnum);
610610
tusb_desc_cs_video_frm_t const *frm = _find_desc_frame(tu_desc_next(fmt), end, frmnum);
611611

612-
uint_fast32_t interval, interval_ms;
612+
uint_fast32_t interval = 0;
613+
uint_fast32_t interval_ms = 0;
613614
switch (request) {
614615
case VIDEO_REQUEST_GET_MAX: {
615616
uint_fast32_t min_interval, max_interval;

0 commit comments

Comments
 (0)