mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #834, crash for TS context corrupt. 2.0.235
This commit is contained in:
parent
7d1a91ca7d
commit
b11ddc7f41
7 changed files with 31 additions and 2 deletions
|
@ -346,6 +346,11 @@ public:
|
|||
*/
|
||||
class SrsTsContext
|
||||
{
|
||||
private:
|
||||
// Whether context is ready, failed if try to write data when not ready.
|
||||
// When PAT and PMT writen, the context is ready.
|
||||
// @see https://github.com/ossrs/srs/issues/834
|
||||
bool ready;
|
||||
// codec
|
||||
private:
|
||||
std::map<int, SrsTsChannel*> pids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue