From ce16a0a9b6dfaf78fa243178bcbcb02a54dc079c Mon Sep 17 00:00:00 2001 From: Johnny Date: Fri, 21 Apr 2023 21:12:42 +0800 Subject: [PATCH] Fix compile warnings --- src/Rtcp/Rtcp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtcp/Rtcp.cpp b/src/Rtcp/Rtcp.cpp index 12e6c693..30060c03 100644 --- a/src/Rtcp/Rtcp.cpp +++ b/src/Rtcp/Rtcp.cpp @@ -551,7 +551,7 @@ const void *RtcpFB::getFciPtr() const { size_t RtcpFB::getFciSize() const { auto fci_len = (ssize_t)getSize() - getPaddingSize() - sizeof(RtcpFB); - CHECK(fci_len >= 0); + CHECK(getSize() >= getPaddingSize() + sizeof(RtcpFB)); return fci_len; }