支持超大rtp包

This commit is contained in:
xiongziliang
2019-06-24 16:07:44 +08:00
parent cc7b19dedc
commit 9039f8c1f6
9 changed files with 30 additions and 37 deletions

View File

@@ -57,10 +57,10 @@ public:
virtual ~BufferRtp(){}
char *data() const override {
return (char *)_rtp->payload + _offset;
return (char *)_rtp->data() + _offset;
}
uint32_t size() const override {
return _rtp->length - _offset;
return _rtp->size() - _offset;
}
private:
RtpPacket::Ptr _rtp;