Merge pull request #2484 from eightycc/uninited

video_device: fix uninitialized variable warning
This commit is contained in:
Ha Thach 2024-02-21 21:50:42 +07:00 committed by GitHub
commit 0f3d28593d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;