支持ts rtp流

This commit is contained in:
xiongziliang
2020-03-06 13:00:06 +08:00
parent d35f1d0bfe
commit 069bde09c1
11 changed files with 302 additions and 39 deletions

View File

@@ -39,7 +39,7 @@ public:
virtual ~RtpDecoder();
protected:
void decodeRtp(const void *data, int bytes,const string &type_name);
virtual void onRtpDecode(const void *packet, int bytes, uint32_t timestamp, int flags) = 0;
virtual void onRtpDecode(const uint8_t *packet, int bytes, uint32_t timestamp, int flags) = 0;
private:
void *_rtp_decoder = nullptr;
BufferRaw::Ptr _buffer;