Commit 6d4a4822 by xiongziliang

修复bug

parent 4b87ec36
Subproject commit 976f2e4bb3b663b19a18781b38b44b43ba3598d8
Subproject commit d7487e37dd915e8391c1d6a45f1773af13b366a7
......@@ -106,7 +106,7 @@ public:
BufferRtmp(const RtmpPacket::Ptr & pkt):_rtmp(pkt){}
virtual ~BufferRtmp(){}
char *data() override {
char *data() const override {
return (char *)_rtmp->strBuf.data();
}
uint32_t size() const override {
......
......@@ -59,7 +59,7 @@ public:
BufferRtp(const RtpPacket::Ptr & pkt,uint32_t offset = 0 ):_rtp(pkt),_offset(offset){}
virtual ~BufferRtp(){}
char *data() override {
char *data() const override {
return (char *)_rtp->payload + _offset;
}
uint32_t size() const override {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论