Merge pull request #2484 from eightycc/uninited
video_device: fix uninitialized variable warning
This commit is contained in:
commit
0f3d28593d
|
@ -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…
Reference in New Issue