Use make_shared where possible

This commit is contained in:
Paul-Louis Ageneau
2021-04-20 19:01:41 +02:00
parent ce9fa374d0
commit cd68d1dba7
3 changed files with 7 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ class RTC_CPP_EXPORT H264RtpPacketizer final : public RtpPacketizer, public Medi
public:
/// Default clock rate for H264 in RTP
static const auto defaultClockRate = 90 * 1000;
inline static const uint32_t defaultClockRate = 90 * 1000;
/// Nalunit separator
enum class Separator {

View File

@@ -30,7 +30,7 @@ namespace rtc {
class RTC_CPP_EXPORT OpusRtpPacketizer final : public RtpPacketizer, public MediaHandlerRootElement {
public:
/// default clock rate used in opus RTP communication
static const uint32_t defaultClockRate = 48 * 1000;
inline static const uint32_t defaultClockRate = 48 * 1000;
/// Constructs opus packetizer with given RTP configuration.
/// @note RTP configuration is used in packetization process which may change some configuration