解决单Track时,等待时间太长的问题

This commit is contained in:
xiongziliang
2020-11-29 09:38:04 +08:00
parent a5b4da7db5
commit a64ce68592
8 changed files with 112 additions and 74 deletions

View File

@@ -44,11 +44,14 @@ public:
TSDecoder();
~TSDecoder();
int input(const uint8_t* data, int bytes) override ;
void setOnDecode(const onDecode &decode) override;
void setOnDecode(onDecode cb) override;
void setOnStream(onStream cb) override;
private:
TSSegment _ts_segment;
struct ts_demuxer_t* _demuxer_ctx = nullptr;
onDecode _on_decode;
onStream _on_stream;
};
#endif//defined(ENABLE_HLS)