From b8a8cd390cfc1a59e80a8d0893feb5532c49ace6 Mon Sep 17 00:00:00 2001 From: philippegorley <philippe.gorley@savoirfairelinux.com> Date: Tue, 27 Aug 2019 13:58:04 -0400 Subject: [PATCH] decoder: initialize last timestamp When always recording, the uninitialized value could break the overlay filter, making one of the video sources not get filtered properly. Change-Id: I137aa175f0ba5d88a660c6bcfa54f37bd65b7c9d --- src/media/media_decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/media_decoder.h b/src/media/media_decoder.h index 619fdde945..781f9fa639 100644 --- a/src/media/media_decoder.h +++ b/src/media/media_decoder.h @@ -169,7 +169,7 @@ private: AVStream *avStream_ = nullptr; bool emulateRate_ = false; int64_t startTime_; - int64_t lastTimestamp_; + int64_t lastTimestamp_ {0}; DeviceParams inputParams_; -- GitLab