mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
abs overflow also plus the deviation, for pure audio hls.
This commit is contained in:
parent
c514a4ceeb
commit
d19dfa528e
4 changed files with 66 additions and 22 deletions
|
@ -172,6 +172,7 @@ struct SrsTsChannel
|
|||
SrsTsPidApply apply;
|
||||
SrsTsStream stream;
|
||||
SrsTsMessage* msg;
|
||||
SrsTsContext* context;
|
||||
// for encoder.
|
||||
u_int8_t continuity_counter;
|
||||
|
||||
|
@ -343,6 +344,7 @@ class SrsTsContext
|
|||
// codec
|
||||
private:
|
||||
std::map<int, SrsTsChannel*> pids;
|
||||
bool pure_audio;
|
||||
// encoder
|
||||
private:
|
||||
// when any codec changed, write the PAT/PMT.
|
||||
|
@ -352,6 +354,14 @@ public:
|
|||
SrsTsContext();
|
||||
virtual ~SrsTsContext();
|
||||
public:
|
||||
/**
|
||||
* whether the hls stream is pure audio stream.
|
||||
*/
|
||||
virtual bool is_pure_audio();
|
||||
/**
|
||||
* when PMT table parsed, we know some info about stream.
|
||||
*/
|
||||
virtual void on_pmt_parsed();
|
||||
/**
|
||||
* reset the context for a new ts segment start.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue