Skip to content

Commit

Permalink
fix(video): fix uninitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunru-hub authored and roma-jam committed Nov 8, 2024
1 parent 6953f8e commit 7c8b116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/class/video/video_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
tusb_desc_cs_video_fmt_t const *fmt = _find_desc_format(tu_desc_next(vs), end, fmtnum);
tusb_desc_cs_video_frm_t const *frm = _find_desc_frame(tu_desc_next(fmt), end, frmnum);

uint_fast32_t interval, interval_ms;
uint_fast32_t interval = 0;
uint_fast32_t interval_ms = 0;
switch (request) {
case VIDEO_REQUEST_GET_MAX: {
uint_fast32_t min_interval, max_interval;
Expand Down

0 comments on commit 7c8b116

Please sign in to comment.