diff --git a/src/media/socket_pair.cpp b/src/media/socket_pair.cpp index 2ca8e9713d963af7f40fb2c67e9f8ed347cf6154..ad0a3d902e0683de47c3b58da20ad13ffdfd9def 100644 --- a/src/media/socket_pair.cpp +++ b/src/media/socket_pair.cpp @@ -466,7 +466,7 @@ SocketPair::readCallback(uint8_t* buf, int buf_size) if (datatype & static_cast<int>(DataType::RTCP)) { len = readRtcpData(buf, buf_size); - if (len >= 0) { + if (len > 0) { auto header = reinterpret_cast<rtcpRRHeader*>(buf); if(header->pt == 201) //201 = RR PT {