medooze / media-server

WebRTC Media Server
GNU General Public License v2.0
1.36k stars 295 forks source link

RTCPCompoundPacket issue #277

Closed pengwang7 closed 7 months ago

pengwang7 commented 7 months ago
DWORD RTCPCompoundPacket::RTCPCompoundPacket::GetSize() const
{
    DWORD size = 0;
    //Calculate
    for(RTCPPackets::const_iterator it = packets.begin(); it!=packets.end(); ++it)
        //Append size
        size = (*it)->GetSize();
    //Return total size
    return size;
}

According to the code comments, the size variable should be incremented, but in reality, it is not

murillo128 commented 7 months ago

good catch!