clock_drift could be left uninitialized.

clock_drift redeclared instead of initialized with "uint64_t clock_drift
= 0".
I think this is the correction.
This commit is contained in:
Jief
2016-11-11 19:16:47 +01:00
parent ed4f43c030
commit 21025440af
+1 -1
View File
@@ -474,7 +474,7 @@ void *rtp_timing_receiver(void *arg) {
if (first_local_time==0) {
first_local_time = local_time_chosen;
first_remote_time = remote_time_chosen;
uint64_t clock_drift = 0;
clock_drift = 0;
} else {
uint64_t local_time_change = local_time_chosen - first_local_time;
uint64_t remote_time_change = remote_time_chosen - first_remote_time;