mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00:00
video_device: fix uninitialized warning
This commit is contained in:
parent
65e60f3123
commit
3f2df94457
@ -559,6 +559,7 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
|
|||||||
uint_fast8_t num_intervals = frm->uncompressed.bFrameIntervalType;
|
uint_fast8_t num_intervals = frm->uncompressed.bFrameIntervalType;
|
||||||
if (num_intervals) {
|
if (num_intervals) {
|
||||||
interval = 0;
|
interval = 0;
|
||||||
|
interval_ms = 0;
|
||||||
} else {
|
} else {
|
||||||
interval = frm->uncompressed.dwFrameInterval[2];
|
interval = frm->uncompressed.dwFrameInterval[2];
|
||||||
interval_ms = interval / 10000;
|
interval_ms = interval / 10000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user