Skip to content

Commit

Permalink
fix win platform compile
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 3, 2024
1 parent 3b826f8 commit 0523bcb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion deps/libjuice
2 changes: 1 addition & 1 deletion deps/libsrtp
Submodule libsrtp updated 92 files
+42 −9 .github/workflows/autotools.yml
+36 −2 .github/workflows/cmake.yml
+144 −0 .github/workflows/meson.yml
+1 −1 .github/workflows/stream_list.yml
+0 −462 .travis.yml
+24 −0 CHANGES
+169 −40 CMakeLists.txt
+4 −4 README.md
+10 −0 cmake/ConfigSafeGuards.cmake
+18 −0 cmake/FindwolfSSL.cmake
+19 −0 cmake/LTO.cmake
+52 −0 cmake/Sanitizer.cmake
+74 −0 cmake/Warnings.cmake
+6 −0 config_in.h
+17 −0 config_in_cmake.h
+180 −9 configure
+37 −1 configure.ac
+10 −17 crypto/cipher/aes.c
+15 −14 crypto/cipher/aes_gcm_mbedtls.c
+27 −22 crypto/cipher/aes_gcm_nss.c
+17 −16 crypto/cipher/aes_gcm_ossl.c
+478 −0 crypto/cipher/aes_gcm_wssl.c
+17 −18 crypto/cipher/aes_icm.c
+6 −6 crypto/cipher/aes_icm_mbedtls.c
+12 −10 crypto/cipher/aes_icm_nss.c
+6 −6 crypto/cipher/aes_icm_ossl.c
+390 −0 crypto/cipher/aes_icm_wssl.c
+47 −51 crypto/cipher/cipher.c
+5 −5 crypto/cipher/null_cipher.c
+8 −7 crypto/hash/auth.c
+12 −13 crypto/hash/hmac.c
+24 −17 crypto/hash/hmac_mbedtls.c
+14 −13 crypto/hash/hmac_nss.c
+23 −18 crypto/hash/hmac_ossl.c
+228 −0 crypto/hash/hmac_wssl.c
+8 −8 crypto/hash/null_auth.c
+7 −7 crypto/hash/sha1.c
+3 −3 crypto/include/aes.h
+35 −8 crypto/include/aes_gcm.h
+2 −2 crypto/include/aes_icm.h
+15 −3 crypto/include/aes_icm_ext.h
+18 −18 crypto/include/auth.h
+30 −30 crypto/include/cipher.h
+1 −1 crypto/include/cipher_priv.h
+1 −1 crypto/include/cipher_types.h
+6 −6 crypto/include/crypto_kernel.h
+48 −31 crypto/include/datatypes.h
+1 −1 crypto/include/err.h
+0 −146 crypto/include/integers.h
+0 −1 crypto/include/rdb.h
+9 −9 crypto/include/rdbx.h
+2 −2 crypto/include/sha1.h
+3 −9 crypto/kernel/alloc.c
+15 −14 crypto/kernel/crypto_kernel.c
+2 −26 crypto/kernel/key.c
+261 −39 crypto/math/datatypes.c
+3 −2 crypto/replay/rdb.c
+16 −64 crypto/replay/rdbx.c
+14 −12 crypto/test/aes_calc.c
+116 −90 crypto/test/cipher_driver.c
+25 −21 crypto/test/datatypes_driver.c
+4 −9 crypto/test/env.c
+8 −4 crypto/test/kernel_driver.c
+2 −2 crypto/test/meson.build
+25 −19 crypto/test/sha1_driver.c
+1 −1 doc/Makefile.in
+17 −19 doc/crypto_kernel.txt
+28 −96 fuzzer/fuzzer.c
+18 −67 fuzzer/fuzzer.h
+104 −368 include/srtp.h
+6 −33 include/srtp_priv.h
+2 −3 include/stream_list_priv.h
+51 −2 meson.build
+2 −2 meson_options.txt
+6 −14 srtp.def
+959 −932 srtp/srtp.c
+27 −14 test/cutest.h
+5 −3 test/getopt_s.c
+1 −1 test/meson.build
+45 −36 test/rdbx_driver.c
+29 −21 test/replay_driver.c
+17 −12 test/roc_driver.c
+35 −29 test/rtp.c
+16 −32 test/rtp.h
+84 −85 test/rtp_decoder.c
+10 −10 test/rtp_decoder.h
+44 −38 test/rtpw.c
+908 −593 test/srtp_driver.c
+4 −1 test/ut_sim.c
+1 −1 test/ut_sim.h
+19 −17 test/util.c
+9 −3 test/util.h
2 changes: 1 addition & 1 deletion include/rtc/av1rtppacketizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace rtc {
class RTC_CPP_EXPORT AV1RtpPacketizer final : public RtpPacketizer {
public:
// Default clock rate for AV1 in RTP
inline static const uint32_t defaultClockRate = 90 * 1000;
static const uint32_t defaultClockRate = 90 * 1000;

// Define how OBUs are seperated in a AV1 Sample
enum class Packetization {
Expand Down
2 changes: 1 addition & 1 deletion include/rtc/h264rtppacketizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RTC_CPP_EXPORT H264RtpPacketizer final : public RtpPacketizer {
using Separator = NalUnit::Separator;

/// Default clock rate for H264 in RTP
inline static const uint32_t defaultClockRate = 90 * 1000;
static const uint32_t defaultClockRate = 90 * 1000;

/// Constructs h264 payload packetizer with given RTP configuration.
/// @note RTP configuration is used in packetization process which may change some configuration
Expand Down
2 changes: 1 addition & 1 deletion include/rtc/h265rtppacketizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RTC_CPP_EXPORT H265RtpPacketizer final : public RtpPacketizer {
using Separator = NalUnit::Separator;

// Default clock rate for H265 in RTP
inline static const uint32_t defaultClockRate = 90 * 1000;
static const uint32_t defaultClockRate = 90 * 1000;

// Constructs h265 payload packetizer with given RTP configuration.
// @note RTP configuration is used in packetization process which may change some configuration
Expand Down
4 changes: 2 additions & 2 deletions include/rtc/rtppacketizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class RTC_CPP_EXPORT RtpPacketizer : public MediaHandler {
template <uint32_t DEFAULT_CLOCK_RATE>
class RTC_CPP_EXPORT AudioRtpPacketizer final : public RtpPacketizer {
public:
inline static const uint32_t DefaultClockRate = DEFAULT_CLOCK_RATE;
inline static const uint32_t defaultClockRate [[deprecated("Use DefaultClockRate")]] =
static const uint32_t DefaultClockRate = DEFAULT_CLOCK_RATE;
static const uint32_t defaultClockRate [[deprecated("Use DefaultClockRate")]] =
DEFAULT_CLOCK_RATE; // for backward compatibility

AudioRtpPacketizer(shared_ptr<RtpPacketizationConfig> rtpConfig)
Expand Down
2 changes: 1 addition & 1 deletion src/av1rtppacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#if RTC_ENABLE_MEDIA

#include "av1rtppacketizer.hpp"

#include <algorithm>
#include "impl/internals.hpp"

namespace rtc {
Expand Down
1 change: 0 additions & 1 deletion src/h264rtppacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ shared_ptr<NalUnits> H264RtpPacketizer::splitMessage(binary_ptr message) {
}
return nalus;
}

H264RtpPacketizer::H264RtpPacketizer(shared_ptr<RtpPacketizationConfig> rtpConfig,
uint16_t maxFragmentSize)
: RtpPacketizer(std::move(rtpConfig)), maxFragmentSize(maxFragmentSize),
Expand Down
3 changes: 1 addition & 2 deletions src/impl/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
*/

#include "http.hpp"

#include <algorithm>

#include <cctype>
namespace rtc::impl {

bool isHttpRequest(const byte *buffer, size_t size) {
Expand Down
2 changes: 1 addition & 1 deletion src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#include "message.hpp"

#include <algorithm>
namespace rtc {

message_ptr make_message(size_t size, Message::Type type, unsigned int stream,
Expand Down

0 comments on commit 0523bcb

Please sign in to comment.