diff --git a/src/Rtcp/Rtcp.cpp b/src/Rtcp/Rtcp.cpp index 027fabc7..707e08e4 100644 --- a/src/Rtcp/Rtcp.cpp +++ b/src/Rtcp/Rtcp.cpp @@ -454,6 +454,7 @@ std::shared_ptr RtcpSdes::create(const std::vector &item_text) auto real_size = sizeof(RtcpSdes) - sizeof(SdesChunk) + item_total_size; auto bytes = alignSize(real_size); auto ptr = (RtcpSdes *) new char[bytes]; + memset(ptr, 0x00, bytes); auto item_ptr = &ptr->chunks; for (auto &text : item_text) { item_ptr->txt_len = (0xFF & text.size());