修复rtp padding相关bug:#722

This commit is contained in:
xia-chu 2021-02-02 12:00:03 +08:00
parent 3298184c5c
commit 39229f9e39

View File

@ -474,7 +474,7 @@ size_t RtpHeader::getPaddingSize(size_t rtp_size) const {
if (!padding) { if (!padding) {
return 0; return 0;
} }
auto end = (uint8_t *) this + rtp_size; auto end = (uint8_t *) this + rtp_size - 1;
return *end; return *end;
} }