summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-02-21 21:50:42 +0700
committerGitHub <[email protected]>2024-02-21 21:50:42 +0700
commit0f3d28593d583278e613eff20c723eb9c1f0461c (patch)
tree5dbf6487453323068663b7ea3f7b8712ded2faf5 /src/class
parent65e60f3123a664bd77c7e5a13021c5d0bba70b8f (diff)
parent3f2df94457e917dda2fed05c7ee17deefe55199e (diff)
Merge pull request #2484 from eightycc/uninited
video_device: fix uninitialized variable warning
Diffstat (limited to 'src/class')
-rw-r--r--src/class/video/video_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c
index 1affd615e..c33dfa0b0 100644
--- a/src/class/video/video_device.c
+++ b/src/class/video/video_device.c
@@ -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;