Skip to content

Commit 0f3d285

Browse files
authored
Merge pull request #2484 from eightycc/uninited
video_device: fix uninitialized variable warning
2 parents 65e60f3 + 3f2df94 commit 0f3d285

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/class/video/video_device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const *
559559
uint_fast8_t num_intervals = frm->uncompressed.bFrameIntervalType;
560560
if (num_intervals) {
561561
interval = 0;
562+
interval_ms = 0;
562563
} else {
563564
interval = frm->uncompressed.dwFrameInterval[2];
564565
interval_ms = interval / 10000;

0 commit comments

Comments
 (0)