HLS: ts分包器主动丢弃非法数据

This commit is contained in:
ziyue
2021-12-24 14:25:01 +08:00
parent c25ff6400f
commit 5832de7ed8
2 changed files with 8 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ public:
typedef std::function<void(const char *data,size_t len)> onSegment;
TSSegment(size_t size = TS_PACKET_SIZE) : _size(size){}
~TSSegment(){}
void setOnSegment(const onSegment &cb);
void setOnSegment(onSegment cb);
static bool isTSPacket(const char *data, size_t len);
protected: