From 5334c4ef40e59be9502d29cf1404dd576377384b Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Thu, 20 Jun 2024 11:29:10 +0200 Subject: [PATCH] Fix uninitialized playout delay fields in RtpPacketizationConfig --- include/rtc/rtppacketizationconfig.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rtc/rtppacketizationconfig.hpp b/include/rtc/rtppacketizationconfig.hpp index ace13063e..3890da04d 100644 --- a/include/rtc/rtppacketizationconfig.hpp +++ b/include/rtc/rtppacketizationconfig.hpp @@ -63,11 +63,11 @@ class RTC_CPP_EXPORT RtpPacketizationConfig { // the negotiated ID of the playout delay header extension // https://webrtc.googlesource.com/src/+/main/docs/native-code/rtp-hdrext/playout-delay/README.md - uint8_t playoutDelayId; + uint8_t playoutDelayId = 0; // Minimum/maxiumum playout delay, in 10ms intervals. A value of 10 would equal a 100ms delay - uint16_t playoutDelayMin; - uint16_t playoutDelayMax; + uint16_t playoutDelayMin = 0; + uint16_t playoutDelayMax = 0; /// Construct RTP configuration used in packetization process /// @param ssrc SSRC of source