Make sure padding packets are sent.

BUG=1837
R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1717006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4260 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2013-06-25 15:46:16 +00:00
parent bb25256775
commit a4c5abb52a

View File

@ -459,7 +459,7 @@ int RTPSender::SendPadData(int payload_type, uint32_t timestamp,
bytes = (bytes + 16) & 0xffe0;
}
}
if (padding_bytes_in_packet < 32) {
if (bytes < 32) {
// Sanity don't send empty packets.
break;
}