mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-13 17:40:56 +08:00
支持超大rtp包
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user