video_device: fix uninitialized warning

This commit is contained in:
Bob Abeles 2024-02-20 08:16:39 -08:00
parent 65e60f3123
commit 3f2df94457
1 changed files with 1 additions and 0 deletions

View File

@ -559,6 +559,7 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
uint_fast8_t num_intervals = frm->uncompressed.bFrameIntervalType;
if (num_intervals) {
interval = 0;
interval_ms = 0;
} else {
interval = frm->uncompressed.dwFrameInterval[2];
interval_ms = interval / 10000;