Merge pull request #206 from eMKa94/compiler_warnings_fix

Compiler warnings fix
This commit is contained in:
tampsa 2024-01-12 12:17:08 +02:00 committed by GitHub
commit 28a270b839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1594,6 +1594,7 @@ rtp_error_t uvgrtp::rtcp::handle_app_packet(uint8_t* packet, size_t& read_ptr,
rtp_error_t uvgrtp::rtcp::handle_fb_packet(uint8_t* packet, size_t& read_ptr,
size_t packet_end, uvgrtp::frame::rtcp_header& header)
{
(void)packet_end;
auto frame = new uvgrtp::frame::rtcp_fb_packet;
frame->header = header;
read_ssrc(packet, read_ptr, frame->sender_ssrc);

View File

@ -969,7 +969,7 @@ rtp_error_t uvgrtp::zrtp::get_srtp_keys(
rtp_error_t uvgrtp::zrtp::packet_handler(void* args, int rce_flags, uint8_t* read_ptr, size_t size, frame::rtp_frame** out)
{
if (size < 0 || (uint32_t)size < sizeof(uvgrtp::zrtp_msg::zrtp_msg))
if ((uint32_t)size < sizeof(uvgrtp::zrtp_msg::zrtp_msg))
{
return RTP_PKT_NOT_HANDLED;
}